Skip to content

Commit

Permalink
Add publish-dry-run input
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Nov 9, 2023
1 parent 818724f commit 85a2d90
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ inputs:
description: 'Whether bootstrap should run or not (default: true)'
required: false
default: 'true'
publish-dry-run:
description: 'Whether packages should be versioned and dry-run published (default: false)'
required: false
default: 'false'
publish:
description: 'Whether packages should be versioned and published (default: false)'
description: 'Whether packages should be versioned and published to pub.dev (default: false)'
required: false
default: 'false'
runs:
Expand All @@ -33,11 +37,11 @@ runs:
if: ${{ inputs.publish == 'true' }}
run: melos version
shell: bash
- name: Run melos publish --dry-run
if: ${{ inputs.publish == 'true' }}
- name: Run melos publish -y --dry-run
if: ${{ inputs.publish-dry-run == 'true' }}
run: melos publish --dry-run
shell: bash
- name: Run melos publish --no-dry-run
- name: Run melos publish -y --no-dry-run
if: ${{ inputs.publish == 'true' }}
run: melos publish --dry-run # Change to --no-dry-run once it is certain it works
shell: bash
Expand Down

0 comments on commit 85a2d90

Please sign in to comment.