Skip to content

Commit 45debaa

Browse files
committed
ci: update release workflow
1 parent aa31fd5 commit 45debaa

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ on:
2626
options:
2727
- 'yes'
2828
- 'no'
29+
force-bump:
30+
description: 'Skip the lerna changed check? (If "yes", `lerna version` will be executed with `--force-publish`)'
31+
required: true
32+
type: choice
33+
default: 'no'
34+
options:
35+
- 'yes'
36+
- 'no'
2937
dryRun:
3038
description: 'Dry run? If yes, this workflow will NOT push to remote and NOT publish the extension.'
3139
required: true
@@ -76,8 +84,11 @@ jobs:
7684
7785
- name: 🚧 Bump the version
7886
id: bump
79-
run: |
80-
pnpm lerna version ${{github.event.inputs.releaseType}} --force-publish --no-push --exact --preid next --yes -m "chore(release): %s"
87+
run: >
88+
pnpm lerna version
89+
${{ github.event.inputs.releaseType }}
90+
${{ github.event.inputs.force-bump == 'yes' && '--force-publish' || '' }}
91+
--no-push --exact --preid next --yes -m "chore(release): %s"
8192
env:
8293
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
8394
VSCODE_WDIO_PRE_RELEASE_PATCH_NUMBER: ${{ steps.gen-pre-release-ver.outputs.result }}

0 commit comments

Comments
 (0)