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
13 changes: 8 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ on:
release:
types: [created]

permissions:
id-token: write # Required for OIDC Trusted Publishing
contents: read

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
registry-url: https://registry.npmjs.org/
cache: yarn
package-manager-cache: false
- name: Update package.json version
run: |
# Extract version from tag and update package.json
Expand All @@ -26,6 +30,5 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- run: yarn publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm install -g npm@latest
- run: npm publish --access=public
Loading