Skip to content
Merged
Changes from all commits
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
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ jobs:
npm test

# ---- npm ----
# npm trusted publishing (OIDC): with this package's Trusted Publisher set
# to this repo + publish.yml on npmjs.com, npm >= 11.5.1 exchanges the
# job's id-token for a one-off publish credential, so no long-lived
# NPM_TOKEN is needed. The token stays below as a fallback until every
# package is switched over.
- name: Upgrade npm for trusted publishing
run: npm install -g npm@^11.5.1
- name: Publish to npm
id: npm
if: steps.v.outputs.pkg != steps.v.outputs.npm
Expand Down
Loading