File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Test
1+ name : Test Package
22
3- on :
4- push :
5- tags-ignore :
6- - ' ** '
3+ on : push
4+
5+ env :
6+ NODE_VERSION : 16
77
88jobs :
9- checks :
10- runs-on : ubuntu-20.04
9+ test :
10+ runs-on : ubuntu-22.04
11+ timeout-minutes : 15
1112 steps :
12- - uses : actions/checkout@v2
13- - uses : actions/setup-node@v1
14- with :
15- node-version : ' 16.x'
16- registry-url : ' https://registry.npmjs.org'
17- - uses : actions/cache@v2
13+ - uses : actions/checkout@v3
14+ - uses : aboutbits/github-actions-node/setup-and-install@v1
1815 with :
19- path : ~/.npm
20- key : ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
21- - run : npm ci
16+ node-version : ${{ env.NODE_VERSION }}
2217 - run : npm run lint
2318 - run : npm run typecheck
19+ - run : npm run test
Load diff This file was deleted.
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments