Skip to content

Commit 3e91313

Browse files
Merge pull request #23 from sereneinserenade/copilot/update-publish-ci-workflow
Switch npm publish to OIDC trusted publishing
2 parents cf5ccea + 7428122 commit 3e91313

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13+
id-token: write
1314
steps:
1415
- name: Checkout 🛎️
1516
uses: actions/checkout@v4
@@ -37,6 +38,4 @@ jobs:
3738
run: npm run build
3839

3940
- name: Publish 🚀
40-
run: npm publish --access public
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)