From 3fb32368745f1ab36032af5194a8ac6b1148cff7 Mon Sep 17 00:00:00 2001 From: Bill Wallace Date: Tue, 21 Apr 2026 10:14:51 -0400 Subject: [PATCH 1/2] fix: Github publish --- .circleci/config.yml | 53 +++++++++++++++++++++++++++++++++++++++++++- publish-version.mjs | 2 -- 2 files changed, 52 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5ebd421589..40b1ae6331 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -134,6 +134,57 @@ jobs: name: publish package versions command: | bun ./publish-version.mjs + - run: + name: create GitHub release from version tag + command: | + if [ -z "$GH_TOKEN" ]; then + echo "GH_TOKEN is required to create GitHub releases." + exit 1 + fi + + if [ ! -f ./version.txt ]; then + echo "version.txt was not found; cannot create release." + exit 1 + fi + + VERSION=$(tr -d '\r\n' < ./version.txt) + TAG="v${VERSION}" + IS_PRERELEASE=false + + if [ "$CIRCLE_BRANCH" = "beta" ]; then + IS_PRERELEASE=true + fi + + RELEASE_PAYLOAD=$(cat < ~/repo/.npmrc @@ -167,7 +218,7 @@ workflows: branches: only: - main - # - beta + - beta - BUILD: requires: - CHECKOUT diff --git a/publish-version.mjs b/publish-version.mjs index 2521cb022b..85b3b08db5 100644 --- a/publish-version.mjs +++ b/publish-version.mjs @@ -129,8 +129,6 @@ async function run() { '--message', `chore(version): Update package versions to ${nextVersion} [skip ci]`, '--conventional-commits', - '--create-release', - 'github', '--no-push', ]); From da2a0ab5a9be3d62fe43848292857ca2bacee764 Mon Sep 17 00:00:00 2001 From: Bill Wallace Date: Tue, 21 Apr 2026 18:08:47 -0400 Subject: [PATCH 2/2] fix: heredoc escape issue --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 40b1ae6331..37f2b04e07 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -155,7 +155,7 @@ jobs: IS_PRERELEASE=true fi - RELEASE_PAYLOAD=$(cat <