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
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ jobs:
publish-npm:
needs: release
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC trusted publishing
contents: read

steps:
- name: Checkout code
Expand All @@ -128,6 +131,11 @@ jobs:
node-version: "20"
registry-url: "https://registry.npmjs.org"

- name: Upgrade npm
# Trusted publishing (OIDC) requires npm >= 11.5.1, newer than the
# version bundled with Node 20.
run: npm install -g npm@latest

- name: Get version from tag
id: version
env:
Expand All @@ -145,8 +153,6 @@ jobs:
- name: Publish to npm
working-directory: npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-homebrew:
needs: release
Expand Down
Loading