Skip to content

Commit 43eafda

Browse files
committed
ci: dry run input in publish workflow
1 parent 9bdbe67 commit 43eafda

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Publish Packages
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
dry_run:
7+
description: Skip actual publish
8+
required: false
9+
type: boolean
10+
default: true
411

512
permissions:
613
contents: read
@@ -15,7 +22,6 @@ jobs:
1522
permissions:
1623
contents: write # to be able to publish a GitHub release
1724
issues: write # to be able to comment on released issues
18-
pull-requests: write # to be able to comment on released pull requests
1925
id-token: write # to enable use of OIDC for npm provenance
2026
attestations: write # necessary to persist the attestation
2127
needs: [checks]
@@ -41,7 +47,7 @@ jobs:
4147
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4248
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
4349
NPM_CONFIG_PROVENANCE: true
44-
run: npm exec multi-semantic-release
50+
run: npm exec multi-semantic-release --dry-run=${{ github.event.inputs.dry_run }}
4551

4652
- name: Remove node_modules
4753
run: |

0 commit comments

Comments
 (0)