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 : Release
2+ on :
3+ push :
4+ branches :
5+ - master
6+
7+ jobs :
8+ release :
9+ name : Release
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write # to be able to publish a GitHub release
13+ issues : write # to be able to comment on released issues
14+ pull-requests : write # to be able to comment on released pull requests
15+ id-token : write # to enable use of OIDC for npm provenance
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : ' lts/*'
26+ cache : ' yarn'
27+
28+ - name : Install dependencies
29+ run : yarn install --frozen-lockfile
30+
31+ - name : Verify the integrity of provenance attestations and registry signatures
32+ run : npm audit signatures
33+
34+ - name : Build
35+ run : yarn build
36+
37+ - name : Run tests
38+ run : yarn test
39+
40+ - name : Release
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
44+ run : npx semantic-release
You can’t perform that action at this time.
0 commit comments