Update npm.yml

This commit is contained in:
Nicolás Hatcher Andrés
2025-01-27 19:51:31 +01:00
committed by Nicolás Hatcher Andrés
parent d3bc8b135c
commit 24fb87721f

View File

@@ -433,8 +433,6 @@ jobs:
shell: bash shell: bash
- name: Publish - name: Publish
run: | run: |
cd bindings/nodejs
npm config set provenance true
echo "${{ github.event.inputs.publish }}" echo "${{ github.event.inputs.publish }}"
if [ "${{ github.event.inputs.publish }}" = "true" ]; then if [ "${{ github.event.inputs.publish }}" = "true" ]; then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc