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 : Create Relase & Publish Package
2- on :
3- push :
4- tags :
5- - ' v*'
1+ name : Test
2+
3+ on : push
4+
65jobs :
7- build :
8- runs-on : ubuntu-latest
6+ checks :
7+ runs-on : ubuntu-20.04
98 steps :
109 - uses : actions/checkout@v2
11- - uses : actions/create-release@v1
12- env :
13- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
14- with :
15- tag_name : ${{ github.ref }}
16- release_name : Release ${{ github.ref }}
17- draft : false
18- prerelease : false
1910 - uses : actions/setup-node@v1
2011 with :
2112 node-version : ' 16.x'
2213 registry-url : ' https://registry.npmjs.org'
14+ - uses : actions/cache@v2
15+ with :
16+ path : ~/.npm
17+ key : ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
2318 - run : npm ci
24- - run : npm publish
25- env :
26- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
19+ - run : npm run lint
20+ - run : npm run typecheck
Original file line number Diff line number Diff line change 1+ name : Create Relase & Publish Package
2+ on :
3+ push :
4+ tags :
5+ - ' v*'
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ - uses : actions/create-release@v1
12+ env :
13+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
14+ with :
15+ tag_name : ${{ github.ref }}
16+ release_name : Release ${{ github.ref }}
17+ draft : false
18+ prerelease : false
19+ - uses : actions/setup-node@v1
20+ with :
21+ node-version : ' 16.x'
22+ registry-url : ' https://registry.npmjs.org'
23+ - run : npm ci
24+ - run : npm publish
25+ env :
26+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments