Skip to content

ci: automate semantic versioning, changelog and npm release with Release Please#2

Merged
Zhang-JiahangH merged 1 commit intomainfrom
codex/automate-versioning-in-ci/cd-workflow
Apr 6, 2026
Merged

ci: automate semantic versioning, changelog and npm release with Release Please#2
Zhang-JiahangH merged 1 commit intomainfrom
codex/automate-versioning-in-ci/cd-workflow

Conversation

@Zhang-JiahangH
Copy link
Copy Markdown
Owner

Motivation

  • Remove manual, hard-coded version bumps and enable automated patch/minor releases driven by conventional commits so routine releases do not require manual version selection.
  • Prevent publishing the wrong package version by validating git tag vs packages/react/package.json before npm publish.

Description

  • Add Release Please workflow (.github/workflows/release-please.yml) that runs googleapis/release-please-action@v4 to create/update release PRs from Conventional Commits.
  • Add release-please-config.json to declare packages/react as the releasable package and .release-please-manifest.json to store the repository-managed package baseline version (0.1.2).
  • Update publish workflow (.github/workflows/release.yml) to use pnpm install --frozen-lockfile and to validate the vX.Y.Z tag against packages/react/package.json before running the npm publish step.
  • Bump packages/react/package.json to 0.1.2 and update CHANGELOG.md and README.md to document the automated versioning and SemVer rules (fix: -> patch, feat: -> minor, feat!:/BREAKING CHANGE: -> major).

Testing

  • Executed pnpm install --frozen-lockfile successfully.
  • Executed pnpm lint && pnpm build && pnpm typecheck && pnpm test and all steps completed successfully.

Codex Task

@Zhang-JiahangH Zhang-JiahangH merged commit f52f84f into main Apr 6, 2026
1 check passed
@Zhang-JiahangH Zhang-JiahangH deleted the codex/automate-versioning-in-ci/cd-workflow branch April 8, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant