Skip to content

Commit a4bbced

Browse files
GuySerfatyclaude
andauthored
fix(ci): prevent orphaned tags in release workflow (#60)
* fix(ci): prevent orphaned tags in release workflow Split tag creation into a separate step after branch push succeeds. Previously `git push origin main --tags` could push the tag while the branch push was rejected (when main moved forward), leaving an orphan tag that blocked subsequent releases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: bump version to 0.12.13 to skip orphaned tag The failed release left an orphan v0.12.13 tag (now deleted). Bumping the base version so the next release creates v0.12.14. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d1a8045 commit a4bbced

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,21 @@ jobs:
9797
if: steps.check-release.outputs.skip != 'true'
9898
run: npm run version:sync
9999

100-
- name: Commit, tag and push
100+
- name: Commit and push
101101
if: steps.check-release.outputs.skip != 'true'
102102
run: |
103103
git add package.json package-lock.json cli/package.json cli/package-lock.json packages/expo-air/package.json
104104
git commit -m "chore: release ${{ steps.version.outputs.version }}"
105+
106+
# Push branch first (without tags) to prevent orphaned tags if main moved forward
107+
git push origin main
108+
109+
- name: Tag and push tag
110+
if: steps.check-release.outputs.skip != 'true'
111+
run: |
112+
# Only tag after successful branch push to avoid orphaned tags
105113
git tag ${{ steps.version.outputs.version }}
106-
git push origin main --tags
114+
git push origin ${{ steps.version.outputs.version }}
107115
108116
- name: Publish @10play/expo-air to npm (org/scoped)
109117
if: steps.check-release.outputs.skip != 'true'

cli/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@10play/expo-air-cli",
3-
"version": "0.12.12",
3+
"version": "0.12.13",
44
"private": true,
55
"type": "module",
66
"description": "CLI for expo-air development server",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@10play/expo-air",
3-
"version": "0.12.12",
3+
"version": "0.12.13",
44
"description": "Vibe Coding for React-Native",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

packages/expo-air/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "expo-air",
3-
"version": "0.12.12",
3+
"version": "0.12.13",
44
"description": "Alias package for @10play/expo-air - Vibe Coding for React-Native",
55
"bin": {
66
"expo-air": "./bin/expo-air.js"
@@ -25,6 +25,6 @@
2525
"license": "MIT",
2626
"homepage": "https://github.com/10play/expo-air#readme",
2727
"dependencies": {
28-
"@10play/expo-air": "^0.12.12"
28+
"@10play/expo-air": "^0.12.13"
2929
}
3030
}

0 commit comments

Comments
 (0)