Skip to content

Commit

Permalink
Reverse logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cndreisbach committed Nov 14, 2024
1 parent d59fae3 commit 357f1cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 357f1cf

Please sign in to comment.