ci(release): publish to npm via trusted publishing

Use Node 22 and npm 11.5.1 or later so the release job can authenticate with OIDC. Keep NPM_TOKEN as a fallback until a publish succeeds.
This commit is contained in:
2026-10-03 12:26:16 +01:00
parent 9d68cc208e
commit 679139a973
+5 -1
View File
@@ -58,10 +58,14 @@ jobs:
- uses: actions/setup-node@v4
if: steps.version.outputs.version_tag != ''
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Upgrade npm for trusted publishing
if: steps.version.outputs.version_tag != ''
run: npm install -g npm@^11.5.1
- name: Publish to npm
if: steps.version.outputs.version_tag != ''
run: |