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/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
push:
tags:
- v*
workflow_dispatch:

permissions:
contents: read
id-token: write
packages: write

jobs:
npm:
Expand All @@ -18,6 +24,8 @@ jobs:
with:
node-version: '22'
registry-url: https://registry.npmjs.org
- name: Update npm for OIDC trusted publishing
run: npm install -g npm@latest
- name: Check version
id: version
shell: bash
Expand All @@ -33,8 +41,6 @@ jobs:
- name: Publish ${{ steps.version.outputs.name }}@${{ steps.version.outputs.current }}
if: ${{ steps.version.outputs.published != steps.version.outputs.current }}
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
github:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down