Merge pull request #21747 from dannon/fix/25.1-npm-trusted-publishing

[25.1] Fix npm trusted publishing in 25.1 release workflow
This commit is contained in:
Marius van den Beek
2026-02-04 17:20:53 +01:00
committed by GitHub
+4 -1
View File
@@ -38,7 +38,7 @@ jobs:
- name: Read Node.js version
id: node-version
run: echo "version=$(cat client/.node_version)" >> $GITHUB_OUTPUT
- uses: actions/setup-node@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ steps.node-version.outputs.version }}
cache: 'yarn'
@@ -47,6 +47,9 @@ jobs:
- name: build client
run: yarn && yarn build-production
working-directory: 'client'
# Ensure npm 11.5.1 or later for trusted publishing
- run: npm install -g npm@latest
working-directory: 'client'
- name: publish client
if: "!github.event.release.prerelease"
run: npm publish --provenance --access public