Skip to content

Commit b1cdfd3

Browse files
chore: add dry run flag to @turbo/repository release (#7297)
1 parent 83a22a5 commit b1cdfd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/turborepo-library-release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Turborepo Library Release
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
dry_run:
7+
description: "Do a dry run, skipping the final publish step."
8+
type: boolean
59

610
jobs:
711
build:
@@ -134,6 +138,7 @@ jobs:
134138
- name: Publish Artifacts
135139
env:
136140
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
141+
if: ${{ !inputs.dry_run }}
137142
run: |
138143
npm config set --location=project "//registry.npmjs.org/:_authToken" ${NPM_TOKEN}
139144
VERSION=$(jq -r .version packages/turbo-repository/js/package.json)

0 commit comments

Comments
 (0)