From d3bc8b135cfe34a789fa6388e7410e3a6c29897a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Mon, 27 Jan 2025 17:53:18 +0100 Subject: [PATCH] FIX: Try a boolean argument for the CI instead --- .github/workflows/npm.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 4641366..752b257 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -12,11 +12,7 @@ permissions: publish: description: "Publish to npm" required: true - type: choice - options: - - yes - - no - default: "no" + type: boolean defaults: run: working-directory: ./bindings/nodejs @@ -437,10 +433,13 @@ jobs: shell: bash - name: Publish run: | + cd bindings/nodejs npm config set provenance true - if [ "${{ github.event.inputs.publish }}" = "yes" ]; then + echo "${{ github.event.inputs.publish }}" + if [ "${{ github.event.inputs.publish }}" = "true" ]; then echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc npm publish --access public + echo "Published to npm" else echo "Not a release, skipping publish" fi