Skip to content

ci: add Changesets release workflow#10

Merged
suleimansh merged 1 commit into
mainfrom
ci/release-bot
Jun 25, 2026
Merged

ci: add Changesets release workflow#10
suleimansh merged 1 commit into
mainfrom
ci/release-bot

Conversation

@suleimansh

Copy link
Copy Markdown
Member

What

Adds .github/workflows/release.yml so GemStack releases the same way Rudder does. On push to main, changesets/action:

  • opens / updates a chore: version packages PR while changesets are pending (runs pnpm changeset:version), and
  • publishes via pnpm release (turbo build --filter=./packages/* + changeset publish) once that PR merges and no changesets remain.

This removes the manual pnpm changeset version + passkey npm publish loop used for @gemstack/ai-sdk@0.1.0 and 0.2.0.

Required before it can publish

  • NPM_TOKEN repo (or org) secret — an npm automation token with publish rights on the @gemstack scope (automation tokens bypass the passkey/OTP prompt, which is what blocked CI publishing before).
  • (optional) RELEASE_PAT — a PAT/App token so the bot's pushes to changeset-release/main trigger CI on the version PR. Falls back to GITHUB_TOKEN if unset (releases still work; the version PR just may need a nudge to get checks).

Until NPM_TOKEN is set the workflow runs but the publish step no-ops/fails at auth, so add the secret before relying on it.

Notes

  • Mirrors rudderjs/rudder's release.yml intent, in GemStack's lighter @v4-pinned style (matches the existing ci.yml).
  • No changeset needed (CI-only change).

Automate versioning + publishing the same way Rudder does: on push to main,
changesets/action opens (or updates) a 'chore: version packages' PR while
changesets are pending, and runs `pnpm release` (build packages/* +
`changeset publish`) once that PR merges and no changesets remain.

Removes the manual `changeset version` + passkey publish loop. Requires an
NPM_TOKEN repo/org secret (automation token, publish scope); RELEASE_PAT is
optional and falls back to GITHUB_TOKEN.
@suleimansh suleimansh merged commit 807e99d into main Jun 25, 2026
1 check passed
@suleimansh suleimansh deleted the ci/release-bot branch June 25, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant