File tree Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to NPM
2+
3+ on :
4+ push :
5+ tags : ['v*']
6+ workflow_dispatch :
7+
8+ jobs :
9+ tests-workflow :
10+ uses : ./.github/workflows/tests.yml
11+ publish :
12+ needs : [tests-workflow]
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ id-token : write
17+ steps :
18+ - uses : actions/checkout@v3
19+ - uses : actions/setup-node@v3
20+ with :
21+ node-version : ' 21.x'
22+ registry-url : ' https://registry.npmjs.org'
23+ - uses : pnpm/action-setup@v2
24+ name : Install pnpm
25+ with :
26+ version : 8
27+ run_install : true
28+ - name : Build
29+ run : pnpm build
30+ - name : Pack
31+ run : rm -f *.tgz && npm pack
32+ - name : Publish
33+ run : npm publish *.tgz --provenance
34+ env :
35+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11name : Tests
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+ tags-ignore :
11+ - ' *'
12+ workflow_call :
413
514jobs :
615 cypress-run :
918 - uses : actions/checkout@v3
1019 - uses : actions/setup-node@v3
1120 with :
12- node-version : ' 16 .x'
21+ node-version : ' 21 .x'
1322 - name : Install dependencies
1423 run : yarn
1524 - name : Install Linux Webkit deps
You can’t perform that action at this time.
0 commit comments