Skip to content

The open-source app everyone uses to manage agents at work

chore: use public-gh for manual release flow

Dotta422f57b16001
diff --git a/doc/RELEASING.md b/doc/RELEASING.md
index 9ca74d1114..1751f466a9 100644
--- a/doc/RELEASING.md
+++ b/doc/RELEASING.md
@@ -78,7 +78,7 @@ ls "releases/v${VERSION}.md"
./scripts/release.sh patch
# 5. Push the release commit and tag
-git push origin HEAD:master --follow-tags
+git push public-gh HEAD:master --follow-tags
# 6. Create or update the GitHub Release from the pushed tag
./scripts/create-github-release.sh X.Y.Z
@@ -393,7 +393,7 @@ What it does **not** do:
After a stable publish succeeds:
```bash
-git push origin HEAD:master --follow-tags
+git push public-gh HEAD:master --follow-tags
./scripts/create-github-release.sh X.Y.Z
```
diff --git a/scripts/create-github-release.sh b/scripts/create-github-release.sh
index 4d1d0789c9..1a12a78309 100755
--- a/scripts/create-github-release.sh
+++ b/scripts/create-github-release.sh
@@ -2,6 +2,7 @@
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
+PUBLISH_REMOTE="${PUBLISH_REMOTE:-public-gh}"
dry_run=false
version=""
@@ -72,8 +73,8 @@ if [ "$dry_run" = true ]; then
exit 0
fi
-if ! git -C "$REPO_ROOT" ls-remote --exit-code --tags origin "refs/tags/$tag" >/dev/null 2>&1; then
- echo "Error: remote tag $tag was not found on origin. Push the release commit and tag first." >&2
+if ! git -C "$REPO_ROOT" ls-remote --exit-code --tags "$PUBLISH_REMOTE" "refs/tags/$tag" >/dev/null 2>&1; then
+ echo "Error: remote tag $tag was not found on $PUBLISH_REMOTE. Push the release commit and tag first." >&2
exit 1
fi
diff --git a/scripts/release.sh b/scripts/release.sh
index ab9257df89..f21acc603c 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -18,6 +18,7 @@ REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
CLI_DIR="$REPO_ROOT/cli"
TEMP_CHANGESET_FILE="$REPO_ROOT/.changeset/release-bump.md"
TEMP_PRE_FILE="$REPO_ROOT/.changeset/pre.json"
+PUBLISH_REMOTE="${PUBLISH_REMOTE:-public-gh}"
dry_run=false
canary=false
@@ -479,6 +480,6 @@ elif [ "$canary" = true ]; then
else
info "Published stable v${TARGET_STABLE_VERSION}."
info "Next steps:"
- info " git push origin HEAD:master --follow-tags"
+ info " git push ${PUBLISH_REMOTE} HEAD:master --follow-tags"
info " ./scripts/create-github-release.sh $TARGET_STABLE_VERSION"
fi
diff --git a/skills/release/SKILL.md b/skills/release/SKILL.md
index 088ed7bafc..866bdb22bb 100644
--- a/skills/release/SKILL.md
+++ b/skills/release/SKILL.md
@@ -200,7 +200,7 @@ Stable publish does **not** push the release for you.
After stable publish succeeds:
```bash
-git push origin HEAD:master --follow-tags
+git push public-gh HEAD:master --follow-tags
./scripts/create-github-release.sh X.Y.Z
```