Skip to content

ci: automate releases with release-please and npm provenance - #1143

Open
BethGriggs wants to merge 2 commits into
nodejs:mainfrom
BethGriggs:release-please
Open

BethGriggs wants to merge 2 commits into
nodejs:mainfrom
BethGriggs:release-please

Conversation

@BethGriggs

@BethGriggs BethGriggs commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Adds a release-please workflow that opens and maintains a release PR on every push to main. When the release PR is merged, the package is published to npm automatically using GitHub OIDC trusted publishing.

Configuration is added so 'lookup:' commits trigger patch releases.

RELEASES.md is updated accordingly.


I noticed I didn't have access to publish a release. Rather than asking for the access, this PR introduces automated releases for CITGM using release-please and npm trusted publishing via GitHub OIDC. I figured it made sense to align this with the automation used in nodejs/node-core-utils.

Note this does introduce slightly different/stricter commit message formatting. However, I did add a customisation so that lookup: prefixed commits will also be treated as patches and trigger release PRs/PR updates. .release-please-manifest.json is required because of this customisation.

Note: someone with access will need to configure the Trusted Publishing in npm before the first release PR is merged:

  • Repository: nodejs/citgm
  • Workflow: release-please.yml
Checklist
  • npm test passes
  • documentation is changed or added
  • contribution guidelines followed
    here

Adds a release-please workflow that opens and maintains a release PR on
every push to main. When the release PR is merged, the package is
published to npm automatically using GitHub OIDC trusted publishing.

Configuration is added so 'lookup:' commits trigger patch releases.

RELEASES.md is updated accordingly.

Signed-off-by: Beth Griggs <bethanyngriggs@gmail.com>
@codecov-commenter

codecov-commenter commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.20%. Comparing base (9697128) to head (841f1ea).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1143   +/-   ##
=======================================
  Coverage   96.20%   96.20%           
=======================================
  Files          29       29           
  Lines        2213     2213           
=======================================
  Hits         2129     2129           
  Misses         84       84           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread .github/workflows/release-please.yml Outdated

@targos targos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I created the OIDC connection on npmjs.com

Co-authored-by: Michaël Zasso <targos@protonmail.com>
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.

3 participants