Skip to content

Commit e9a386b

Browse files
modify release.yml to include new npm granular access token (#175)
* modify release.yml to include new npm granular access token * modify release.yml to include new npm granular access token
1 parent 4bfd885 commit e9a386b

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
name: release
2-
3-
env:
4-
NODE_JS_VERSION: 20.19.5
5-
62
on:
73
release:
8-
types: [ created ]
9-
4+
types: [created]
5+
env:
6+
NODE_JS_VERSION: 20.19.5
107
jobs:
118
release:
129
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write # Required for OIDC
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
1717
node-version: ${{ env.NODE_JS_VERSION }}
1818
registry-url: 'https://registry.npmjs.org'
19-
20-
- run: yarn install --frozen-lockfile
19+
- run: npm ci
2120
- run: yarn prepare
22-
- run: npm ci --legacy-peer-deps
23-
- run: npm publish --access public
21+
- run: npm publish --access public --provenance
2422
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Granular token

0 commit comments

Comments
 (0)