File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 11name : CI
22on :
3- push :
3+ pull_request :
44 branches : main
55
66jobs :
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches :
5+ - main
6+
7+ permissions :
8+ contents : read # for checkout
9+
10+ jobs :
11+ release :
12+ name : Release
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write # to be able to publish a GitHub release
16+ issues : write # to be able to comment on released issues
17+ pull-requests : write # to be able to comment on released pull requests
18+ id-token : write # to enable use of OIDC for npm provenance
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v3
22+ with :
23+ fetch-depth : 0
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v3
26+ with :
27+ node-version : " lts/*"
28+ - name : Install dependencies
29+ run : npm clean-install
30+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
31+ run : npm audit signatures
32+ - name : Release
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
36+ run : npm run release
You can’t perform that action at this time.
0 commit comments