Skip to content

Commit f448dc4

Browse files
committed
id-token, remove npm token
1 parent 3b06812 commit f448dc4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish
22
permissions:
33
contents: read
44
packages: write
5+
id-token: write # Required for OIDC
56

67
on:
78
release:
@@ -12,7 +13,7 @@ jobs:
1213
runs-on: ubuntu-22.04
1314
steps:
1415
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v4
1617
with:
1718
node-version: 20
1819
registry-url: https://registry.npmjs.org/
@@ -22,6 +23,4 @@ jobs:
2223
- run: npm version ${TAG_NAME} --git-tag-version=false
2324
env:
2425
TAG_NAME: ${{ github.event.release.tag_name }}
25-
- run: npm whoami; npm --ignore-scripts publish
26-
env:
27-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26+
- run: npm --ignore-scripts publish

0 commit comments

Comments
 (0)