Skip to content

Commit 3e2f5d9

Browse files
committed
ci: allow publishing pre-bumped releases
1 parent 0f42319 commit 3e2f5d9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ jobs:
132132
git add package.json deno.json
133133
134134
if git diff --cached --quiet; then
135-
echo "::error::No version changes to commit"
136-
exit 1
135+
echo "No version changes to commit; tagging current HEAD"
136+
else
137+
git commit -m "chore(release): ${{ steps.version.outputs.tag }}"
138+
git push origin HEAD
137139
fi
138140
139-
git commit -m "chore(release): ${{ steps.version.outputs.tag }}"
140141
git tag -a "${{ steps.version.outputs.tag }}" -m "Release ${{ steps.version.outputs.tag }}"
141-
git push origin HEAD
142142
git push origin "${{ steps.version.outputs.tag }}"
143143
144144
- if: env.RELEASE_PUBLISH == 'true'

0 commit comments

Comments
 (0)