ci: correctly set auth token for npm publish

This commit is contained in:
Hendrik Eeckhaut
2025-03-28 08:58:25 +01:00
parent 0372b8e8aa
commit be717f4260

View File

@@ -94,4 +94,7 @@ jobs:
if: env.RELEASE_MODE == 'publish'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
npm publish
rm .npmrc