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
9 changes: 5 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
registry-url: "https://registry.npmjs.org"
- run: pnpm install --frozen-lockfile

# Ensure npm is new enough for OIDC trusted publishing (>= 11.5.1)
- name: Update npm
run: npm install -g npm@latest

- name: Check if version is already published
id: check
run: |
Expand All @@ -35,10 +39,7 @@ jobs:

- name: Build and publish
if: steps.check.outputs.published == 'false'
run: |
# Clear the placeholder token so npm uses OIDC instead
npm config set //registry.npmjs.org/:_authToken ""
pnpm build && npm publish --access public --provenance
run: pnpm build && npm publish --access public

- name: Ensure git tag exists
if: steps.check.outputs.published == 'false'
Expand Down
Loading