Skip to content

Commit

Permalink
Add conditional dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
cndreisbach committed Nov 14, 2024
1 parent a870007 commit d59fae3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Create release and publish to NPM
on:
workflow_dispatch:
inputs:
dry-run:
description: "Dry run"
default: true
required: false
type: boolean
push:
branches:
- main

jobs:
release:
name: Build and deploy
Expand Down Expand Up @@ -41,4 +48,9 @@ jobs:
npm config set "//packages.atlassian.com/api/npm/atlassian-npm/:_password" "${ARTIFACTORY_PASSWORD}"
- name: Publish (dry-run)
if: inputs.dry-run
run: npm publish --dry-run

- name: Publish
if: ${{ ! inputs.dry-run }}
run: npm publish --dry-run

0 comments on commit d59fae3

Please sign in to comment.