Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

permissions:
id-token: write # required for publishing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the linked PR in the PR description, it seems that permissions should be a key under publish-npm below? i think this is better so the id-token permission is limited to only the publish step

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very fair point, updated


jobs:
test:
runs-on: ubuntu-22.04
Expand All @@ -27,7 +30,6 @@ jobs:
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm install -g yarn@latest
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}