Skip to content

Commit 11d707e

Browse files
committed
ci: add manuall publish dispatch
1 parent 2261c0e commit 11d707e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: release-please
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
publish-release:
7+
description: Publish the release?
8+
required: true
9+
default: "false"
410
push:
511
branches:
612
- master
@@ -20,16 +26,16 @@ jobs:
2026
manifest-file: .github/.release-please-manifest.json
2127
config-file: .github/release-please-config.json
2228

23-
- if: ${{ steps.release.outputs.release_created }}
29+
- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
2430
uses: actions/checkout@v4
2531

26-
- if: ${{ steps.release.outputs.release_created }}
32+
- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
2733
uses: actions/setup-node@v4
2834
with:
2935
node-version-file: ".nvmrc"
3036
registry-url: "https://registry.npmjs.org"
3137

32-
- if: ${{ steps.release.outputs.release_created }}
38+
- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
3339
run: |
3440
npm ci &&
3541
npm run build &&

0 commit comments

Comments
 (0)