ci: add release-please for automated releases#73
Conversation
Add a release-please workflow to automate versioning, changelog generation, and npm publishing on merge to main, mirroring the setup in authkit-tanstack-start (#64). - Add release-please-config.json and .release-please-manifest.json (seeded at the current v0.11.0) - Update release.yml to use the workflow_call trigger (invoked by release-please) instead of release: [published], and collapse the prerelease/release publish steps into a single publish step Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a Lint PR Title workflow using action-semantic-pull-request so PR titles follow the Conventional Commits format that release-please relies on for versioning and changelog generation. Mirrors authkit-nextjs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR adds automated Release Please publishing for the package. The main changes are:
Confidence Score: 4/5The release automation is close, but the manifest baseline needs correction before merging to avoid an incorrect first automated release. The changed workflows and configuration are limited in scope, and the main issue is isolated to the Release Please manifest version seed. .release-please-manifest.json
What T-Rex did
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
.release-please-manifest.json:1-3
**Seed current version** The manifest is the baseline Release Please uses as the last released version. This repo's `package.json`, `package-lock.json`, and latest changelog entry are still `0.11.0`, but the new manifest starts at `0.12.0`. When the first automated release runs, Release Please will calculate the next version from `0.12.0`, so the intended first `0.12.x` release can be skipped or mis-versioned.
Reviews (1): Last reviewed commit: "Bump version from 0.11.0 to 0.12.0" | Re-trigger Greptile |
| { | ||
| ".": "0.12.0" | ||
| } |
There was a problem hiding this comment.
Seed current version The manifest is the baseline Release Please uses as the last released version. This repo's
package.json, package-lock.json, and latest changelog entry are still 0.11.0, but the new manifest starts at 0.12.0. When the first automated release runs, Release Please will calculate the next version from 0.12.0, so the intended first 0.12.x release can be skipped or mis-versioned.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .release-please-manifest.json
Line: 1-3
Comment:
**Seed current version** The manifest is the baseline Release Please uses as the last released version. This repo's `package.json`, `package-lock.json`, and latest changelog entry are still `0.11.0`, but the new manifest starts at `0.12.0`. When the first automated release runs, Release Please will calculate the next version from `0.12.0`, so the intended first `0.12.x` release can be skipped or mis-versioned.
How can I resolve this? If you propose a fix, please make it concise.There was a problem hiding this comment.
this....is 0.12.0 ?
There was a problem hiding this comment.
You're right — package.json is already at 0.12.0, so the manifest is correct. My original comment was wrong; the manifest properly seeds from the current published version. Sorry for the noise!
Summary
release-please-config.jsonand.release-please-manifest.json(seeded at the current v0.11.0)release.ymlto use theworkflow_calltrigger (invoked by release-please) instead ofrelease: [published]Lint PR Titleworkflow (action-semantic-pull-request) so PR titles follow the Conventional Commits format release-please relies on.nvmrctooling rather than pnpm)How it works
maintrigger release-pleaserelease.ymlto build and publish to npm via OIDC trusted publishingPrerequisites
SDK_BOT_APP_ID(org variable) andSDK_BOT_PRIVATE_KEY(org secret) are configured and available to this repo🤖 Generated with Claude Code