From 357f1cfc57fcd52a9eea7a26b345e7283ae0cedd Mon Sep 17 00:00:00 2001 From: Clinton Dreisbach Date: Thu, 14 Nov 2024 11:45:57 -0500 Subject: [PATCH] Reverse logic --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfdd20d..bd05ad2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,9 @@ name: Create release and publish to NPM on: workflow_dispatch: inputs: - dry-run: - description: "Dry run" - default: true + publish: + description: "Publish (not a dry run)" + default: false required: false type: boolean push: @@ -48,9 +48,9 @@ jobs: npm config set "//packages.atlassian.com/api/npm/atlassian-npm/:_password" "${ARTIFACTORY_PASSWORD}" - name: Publish (dry-run) - if: inputs.dry-run + if: ${{ ! inputs.publish }} run: npm publish --dry-run - name: Publish - if: ${{ ! inputs.dry-run }} - run: npm publish --dry-run + if: inputs.publish + run: npm publish