File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,14 @@ jobs:
1212 release :
1313 name : Release
1414 runs-on : ubuntu-latest
15+ permissions :
16+ id-token : write
17+ contents : write
1518 steps :
1619 - name : Checkout
1720 uses : actions/checkout@v4
1821
19- # Needed for lerna version to determine last tag
22+ # Needed for release-it to determine last tag and version history
2023 - name : Fetch
2124 run : git fetch --prune --unshallow --tags
2225
2932 - name : Setup Node
3033 uses : actions/setup-node@v4
3134 with :
32- node-version : ' 18'
35+ node-version : ' 20'
36+ registry-url : ' https://registry.npmjs.org'
37+
38+ - name : Update npm for trusted publishing
39+ run : npm install -g npm@latest
40+
3341
3442 - name : Install
3543 run : yarn install --frozen-lockfile
4553 git config --global user.name amplitude-sdk-bot
4654 git config --global user.email [email protected] 4755
48- - name : Setup NPM Token
49- if : ${{ github.event.inputs.dryRun == 'false'}}
50- env :
51- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
52- run : echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
53-
5456 - name : Release (Dry Run)
5557 if : ${{ github.event.inputs.dryRun == 'true'}}
5658 env :
Original file line number Diff line number Diff line change 107107 "tagName" : " v${version}"
108108 },
109109 "npm" : {
110- "publish" : true
110+ "publish" : true ,
111+ "publishArgs" : [" --provenance" ]
111112 },
112113 "github" : {
113114 "release" : true
You can’t perform that action at this time.
0 commit comments