Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Release Please

on:
push:
branches:
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

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

The workflow only runs on pushes to master. Other workflows in this repo run on both main and master (e.g. .github/workflows/ci.yml:6-9), so releases may never be prepared if the default branch is main. Consider adding main here (or otherwise aligning this list with the repo’s default/release branch).

Suggested change
branches:
branches:
- main

Copilot uses AI. Check for mistakes.
- master
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add main branch to release workflow trigger

This workflow only runs on pushes to master, so repositories that release from main will never execute release-please and therefore never open/update release PRs or publish to npm. In this repo, other automation already treats main as an active branch (for example .github/workflows/ci.yml and pkg-pr-new-preview.yml include main), so limiting this trigger to master introduces a release pipeline gap whenever changes land on main.

Useful? React with 👍 / 👎.

workflow_dispatch:

permissions:
contents: write
pull-requests: write
issues: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
release-please:
name: Prepare Release
runs-on: ubuntu-latest
timeout-minutes: 15
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

steps:
- name: Run release-please
id: release
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

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

Using secrets.GITHUB_TOKEN here can cause Release Please-created PRs/tags/releases to not trigger other GitHub Actions workflows (GitHub suppresses workflow runs triggered by the workflow token). If you expect CI checks to run on the release PR before merging, use a dedicated PAT/GitHub App token stored as a secret (and pass it to token:) instead of GITHUB_TOKEN.

Suggested change
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}

Copilot uses AI. Check for mistakes.
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

publish-npm:
name: Publish to npm
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
id-token: write

steps:
- name: Checkout release tag
uses: actions/checkout@v4
with:
ref: ${{ needs.release-please.outputs.tag_name }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Publish package
run: pnpm publish --access public --no-git-checks --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.5.10"
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"fast-glob": "^3.3.2",
"log-update": "^7.0.2",
"picocolors": "^1.1.1",
"picomatch": "^4.0.3",
"picomatch": "^4.0.4",
"zod": "^4.3.6"
},
"devDependencies": {
Expand Down Expand Up @@ -138,7 +138,10 @@
},
"pnpm": {
"overrides": {
"minimatch@>=10.0.0 <10.2.3": "10.2.4"
"defu@<=6.1.4": "6.1.5",
"lodash@>=4.0.0 <=4.17.23": "4.18.0",
"minimatch@>=10.0.0 <10.2.3": "10.2.4",
"picomatch@<2.3.2": "2.3.2"
}
}
}
62 changes: 33 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"release-type": "node",
"include-component-in-tag": false,
"include-v-in-tag": true
}
}
}
Loading