Skip to content

ci: automate versioning and changelog with release-please - #31

Open
Amayyas wants to merge 1 commit into
mainfrom
ci/release-please
Open

ci: automate versioning and changelog with release-please#31
Amayyas wants to merge 1 commit into
mainfrom
ci/release-please

Conversation

@Amayyas

@Amayyas Amayyas commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

Automated versioning + changelog (theme #5 of the CI roadmap). Builds on the Conventional-Commit PR titles (#16) and the release zips (#12).

  • release-please (release-please.yml + release-please-config.json + .release-please-manifest.json) — as feat: / fix: changes land on main, release-please keeps a release PR up to date that bumps the version and updates CHANGELOG.md. Merging it tags the version, creates the GitHub Release with changelog notes, then this same workflow builds and attaches the Chrome/Firefox zips.
  • Version syncrelease-type: node bumps package.json (+ lockfile); an extra-files jsonpath entry bumps manifest.json too, so the two never drift (our check:version CI keeps enforcing it).
  • Single mechanismrelease.yml (the tag-triggered flow from CI: per-browser release zips on tagged releases #12/ci: release zips per browser on tagged releases #29) is removed; release-please now drives releases end to end. The npm run package script and the zip naming are unchanged.

Why the build/upload lives inside the release-please workflow

A GitHub Release created with the default GITHUB_TOKEN does not trigger other workflows (loop-prevention). So instead of a separate on: release workflow, the zip build + upload runs in the same job, gated on steps.release.outputs.release_created == 'true'.

Permissions & supply chain

First run after merge

release-please will open a release PR (e.g. chore(main): release 0.x.y) based on the commits since 0.1.0. Review/merge it when you actually want to cut a version — nothing is released until you do. ci:/chore: commits don't bump the version; feat: → minor, fix: → patch.

Verification (local)

  • YAML + both JSON config files validated.
  • npm run lint, format:check, knip, typecheck — all pass.

- release-please-config.json + .release-please-manifest.json: node release
  type, keeps package.json and manifest.json versions in sync (extra-files
  jsonpath), plain v<version> tags.
- release-please.yml: maintains the release PR (version bump + CHANGELOG),
  and on merge builds + attaches the Chrome/Firefox zips to the created
  Release (done in-workflow since GITHUB_TOKEN releases don't trigger other
  workflows).
- Remove release.yml: the tag-triggered release flow is now superseded by
  release-please (single mechanism).
- README: Releases section updated to the release-please flow.

Builds on the Conventional-Commit PR titles (#16) and the release zips (#12).
@Amayyas
Amayyas requested a review from Copilot July 2, 2026 14:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas Amayyas self-assigned this Jul 2, 2026
@Amayyas
Amayyas requested a review from Copilot July 2, 2026 15:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 2, 2026 20:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 2, 2026 20:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 4, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 6, 2026 10:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 8, 2026 10:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 8, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 9, 2026 18:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 10, 2026 08:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Amayyas
Amayyas requested a review from Copilot July 11, 2026 14:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants