Skip to content

Commit 1813fe9

Browse files
committed
ci(release): Add input parameter for dry-run release option
1 parent eae3d49 commit 1813fe9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ on:
2424
type: boolean
2525
required: false
2626
default: true
27+
dry-run:
28+
description: Should only preview operations instead of actually executing them
29+
type: boolean
30+
required: false
31+
default: false
2732

2833
env:
2934
TERM: xterm-256color
30-
FORCE_COLOR: "true"
35+
FORCE_COLOR: 'true'
3136

3237
jobs:
3338
release:
@@ -77,7 +82,7 @@ jobs:
7782
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
7883
7984
- name: Release packages on '${{ inputs.channel }}' channel
80-
run: yarn release -c ${{ inputs.channel }} --verbose ${{ inputs.publish-only && '--publishOnly' || '' }} ${{ inputs.skip-publish && '--skipPublish' || '' }} ${{ inputs.github-release && '--githubRelease' || '' }}
85+
run: yarn release -c ${{ inputs.channel }} --verbose ${{ inputs.publish-only && '--publishOnly' || '' }} ${{ inputs.skip-publish && '--skipPublish' || '' }} ${{ inputs.github-release && '--githubRelease' || '' }} ${{ inputs.dry-run && '--dryRun' || '' }}
8186
env:
8287
RELEASE_ENABLED: ${{ vars.RELEASE_ENABLED }}
8388
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)