Skip to content

Commit 7e42eff

Browse files
committed
add option to skip versioning
1 parent cd19a27 commit 7e42eff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/production-release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Production Release
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
skip_version:
7+
description: "Skip changeset version/commit and only publish"
8+
required: false
9+
default: false
10+
type: boolean
511

612
concurrency: production-release-main
713

@@ -108,6 +114,7 @@ jobs:
108114
run: pnpm install --frozen-lockfile
109115

110116
- name: Ensure changeset exists
117+
if: ${{ !inputs.skip_version }}
111118
run: |
112119
if ! find packages/next/.changeset -maxdepth 1 -type f -name "*.md" ! -name "README.md" | grep -q .; then
113120
echo "No changesets found in packages/next/.changeset. Add one before running a production release."
@@ -127,10 +134,12 @@ jobs:
127134
mv artifacts/packages/next/dist/fonts packages/next/dist/fonts
128135
129136
- name: Version packages
137+
if: ${{ !inputs.skip_version }}
130138
working-directory: packages/next
131139
run: pnpm changeset version
132140

133141
- name: Commit version changes
142+
if: ${{ !inputs.skip_version }}
134143
run: |
135144
if git diff --quiet; then
136145
echo "No version changes to commit."

0 commit comments

Comments
 (0)