Skip to content

ci: migrate releases to release-please#367

Merged
parkerbxyz merged 5 commits into
mainfrom
parkerbxyz/add-git-commit-signing
May 8, 2026
Merged

ci: migrate releases to release-please#367
parkerbxyz merged 5 commits into
mainfrom
parkerbxyz/add-git-commit-signing

Conversation

@parkerbxyz

@parkerbxyz parkerbxyz commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

This updates release automation so the repository can enforce signed commits. Release version and changelog updates now happen through release-please PRs instead of direct workflow commits, which allows them to use the repository's normal signed-commit path.

Changes

  • Replaces semantic-release configuration with release-please manifest configuration for stable releases and beta prereleases.
  • Builds committed dist/** assets from the trusted release workflow after release-please creates or updates a release PR, then commits those assets back to the release PR branch.
  • Keeps floating major version tags, such as v3, updated with the GitHub API after a release is created.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the repository’s release automation from semantic-release to release-please so release version/changelog updates flow through PRs (supporting repositories that require signed commits), and adds automation to keep dist/** assets and floating major tags up to date.

Changes:

  • Introduces release-please config + manifest for stable and beta prerelease flows.
  • Updates the release workflow to run release-please and update floating major tags via the GitHub API.
  • Adds a build workflow to regenerate and commit dist/** assets on release-please PRs.
Show a summary per file
File Description
release-please-config.json Adds release-please configuration for stable releases.
release-please-config.beta.json Adds release-please configuration for beta prereleases.
.release-please-manifest.json Adds the release-please manifest tracking the current version.
package.json Removes semantic-release configuration.
.github/workflows/release.yml Replaces semantic-release with release-please and adds major tag maintenance.
.github/workflows/build.yml Adds a workflow to rebuild and commit dist/** for release-please PRs.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comments suppressed due to low confidence (1)

.github/workflows/release.yml:52

  • Same as above: this octokit/request-action@v2.x reference is mutable. Pinning to a commit SHA reduces the risk of unexpected upstream changes affecting the release/tagging process.
        if: steps.release-please.outputs.release_created == 'true' && github.ref_name != 'beta' && steps.update-major-tag.outcome == 'failure'
        uses: octokit/request-action@v2.x
        with:
  • Files reviewed: 6/6 changed files
  • Comments generated: 3

Comment thread .github/workflows/build.yml Outdated
Comment thread .github/workflows/build.yml Outdated
Comment thread .github/workflows/release.yml
@parkerbxyz parkerbxyz changed the title Migrate releases to release-please ci: migrate releases to release-please May 8, 2026
parkerbxyz and others added 2 commits May 7, 2026 17:41
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 1

Comment thread .github/workflows/build.yml Outdated
parkerbxyz and others added 2 commits May 7, 2026 17:52
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

Comments suppressed due to low confidence (1)

.github/workflows/release.yml:8

  • workflow_dispatch can be run on any ref, but this workflow will still create/update release PRs (and potentially update major tags) based on github.ref_name. To prevent accidental releases from an arbitrary branch, add a job-level guard restricting refs to main, beta, or *.x (or add a required target_branch input and validate it before running release-please).
on:
  workflow_dispatch:
  push:
    branches:
      - "*.x"
      - main
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new

@parkerbxyz parkerbxyz marked this pull request as ready for review May 8, 2026 01:12
@parkerbxyz parkerbxyz requested a review from a team as a code owner May 8, 2026 01:12
@parkerbxyz parkerbxyz merged commit 6be28c6 into main May 8, 2026
12 checks passed
@parkerbxyz parkerbxyz deleted the parkerbxyz/add-git-commit-signing branch May 8, 2026 01:13
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