File tree Expand file tree Collapse file tree 1 file changed +33
-8
lines changed
Expand file tree Collapse file tree 1 file changed +33
-8
lines changed Original file line number Diff line number Diff line change 11name : Release
2- on : workflow_dispatch
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : ' 0 6 * * 0' # every Sunday at 6am
7+
38permissions :
4- id-token : write
5- contents : read
9+ contents : read # for checkout
10+
611jobs :
712 test :
813 runs-on : ubuntu-latest
@@ -17,15 +22,35 @@ jobs:
1722 release :
1823 needs : test
1924 runs-on : ubuntu-latest
25+ permissions :
26+ contents : write # to be able to publish a GitHub release
27+ issues : write # to be able to comment on released issues
28+ pull-requests : write # to be able to comment on released pull requests
29+ id-token : write # to enable use of OIDC for trusted publishing and npm provenance
2030 steps :
21- - uses : actions/checkout@v4
31+ - name : Checkout
32+ uses : actions/checkout@v4
33+ with :
34+ fetch-depth : 0
35+
2236 - uses : actions/setup-node@v4
2337 with :
2438 node-version : ' 22.x'
2539 registry-url : ' https://registry.npmjs.org'
26- - uses : pnpm/action-setup@v4
27- - run : pnpm install
28- - run : pnpm build
29- - run : pnpm semantic-release
40+
41+ - name : Setup pnpm
42+ uses : pnpm/action-setup@v4
43+
44+ - name : Install dependencies
45+ run : pnpm install
46+
47+ - name : Verify provenance
48+ run : npm audit signatures
49+
50+ - name : Build
51+ run : pnpm build
52+
53+ - name : Publish
54+ run : pnpm semantic-release
3055 env :
3156 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments