Skip to content

Commit d09a4c4

Browse files
committed
rename GitHub action files
1 parent 5fdd4c5 commit d09a4c4

3 files changed

Lines changed: 39 additions & 39 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
name: Create Relase & Publish Package
1+
name: Test Package
22

3-
on:
4-
push:
5-
tags:
6-
- 'v*'
3+
on: push
74

85
env:
96
NODE_VERSION: 16
107

118
jobs:
12-
build:
9+
test:
1310
runs-on: ubuntu-22.04
14-
timeout-minutes: 5
11+
timeout-minutes: 15
1512
steps:
1613
- uses: actions/checkout@v3
17-
- uses: actions/github-script@v6
18-
with:
19-
script: |
20-
github.rest.repos.createRelease({
21-
owner: context.repo.owner,
22-
repo: context.repo.repo,
23-
tag_name: '${{ github.ref }}',
24-
name: 'Release ${{ github.ref_name }}'
25-
})
2614
- uses: aboutbits/github-actions-node/setup-and-install@v1
2715
with:
2816
node-version: ${{ env.NODE_VERSION }}
29-
registry-url: 'https://registry.npmjs.org'
30-
- run: npm publish
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
- run: npm run lint
18+
- run: npm run typecheck
19+
- run: npm run test

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Create Relase & Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
env:
9+
NODE_VERSION: 16
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
timeout-minutes: 5
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/github-script@v6
18+
with:
19+
script: |
20+
github.rest.repos.createRelease({
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
tag_name: '${{ github.ref }}',
24+
name: 'Release ${{ github.ref_name }}'
25+
})
26+
- uses: aboutbits/github-actions-node/setup-and-install@v1
27+
with:
28+
node-version: ${{ env.NODE_VERSION }}
29+
registry-url: 'https://registry.npmjs.org'
30+
- run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)