Skip to content

Commit 9346fcd

Browse files
committed
chore(ci): add skip checkbox skip Lerna Version to retry Publish only
1 parent 3fc2ba8 commit 9346fcd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
description: 'Fixed Version'
2323
required: false
2424
type: string
25+
skip_version_retry_publish:
26+
type: boolean
27+
description: 'Skip running `lerna version` and run publish-only retry (useful to retry failed publish)'
2528

2629
permissions:
2730
contents: write # to be able to publish a GitHub release
@@ -74,6 +77,7 @@ jobs:
7477
run: pnpm build
7578

7679
- name: Lerna Version (build query)
80+
if: ${{ inputs.skip_version_retry_publish != true }}
7781
shell: bash
7882
run: |
7983
if [ "${{ inputs.dryrun }}" = "true" ] && [ "${{ inputs.graduate }}" = "true" ]; then
@@ -107,6 +111,7 @@ jobs:
107111
run: echo "${{ env.LERNA_VERSION_QUERY }}"
108112

109113
- name: Lerna Version 🏷️
114+
if: ${{ inputs.skip_version_retry_publish != true }}
110115
env:
111116
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112117
shell: bash
@@ -115,6 +120,11 @@ jobs:
115120
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
116121
pnpm exec ${{ env.LERNA_VERSION_QUERY }}
117122
123+
- name: Skip Lerna Version Notice
124+
if: ${{ inputs.skip_version_retry_publish == true }}
125+
run: |
126+
echo "skip_version_retry_publish=true — lerna version is skipped; proceeding to publish-only run."
127+
118128
- name: Lerna Publish (build query)
119129
shell: bash
120130
run: |

0 commit comments

Comments
 (0)