File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: Production Release
22
33on :
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
612concurrency : 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."
You can’t perform that action at this time.
0 commit comments