File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88concurrency : ${{ github.workflow }}-${{ github.ref }}
99
10+ permissions :
11+ contents : write
12+ pull-requests : write
13+ # OIDC
14+ id-token : write
15+
1016jobs :
1117 release :
1218 name : Release
1319 runs-on : ubuntu-latest
14- permissions :
15- contents : write
16- pull-requests : write
20+ env :
21+ # Force npm to emit provenance (SLSA) when publishing via OIDC.
22+ NPM_CONFIG_PROVENANCE : true
23+
1724 steps :
1825 - name : Checkout Repo
19- uses : actions/checkout@v3
26+ uses : actions/checkout@v4
2027
2128 - name : Enable Corepack
2229 run : corepack enable
2330
2431 - name : Setup Node.js 20.x
25- uses : actions/setup-node@v3
32+ uses : actions/setup-node@v4
2633 with :
2734 node-version : 20.x
35+ registry-url : " https://registry.npmjs.org"
36+
37+ - name : Ensure npm 11.5.1+ for trusted publishing
38+ run : npm install -g npm@^11.5.1
2839
2940 - name : Install Dependencies
3041 run : yarn
3647 # This expects you to have a script called release which does a build for your packages and calls changeset publish
3748 publish : yarn release
3849 env :
39- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40- NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments