Skip to content

chore(ci): use OIDC token for trusted publishing to npm#5610

Merged
mark-wiemer merged 2 commits intomochajs:mainfrom
hainenber:build/switch-to-npm-trusted-publishing
Jan 4, 2026
Merged

chore(ci): use OIDC token for trusted publishing to npm#5610
mark-wiemer merged 2 commits intomochajs:mainfrom
hainenber:build/switch-to-npm-trusted-publishing

Conversation

@hainenber
Copy link
Copy Markdown
Contributor

@hainenber hainenber commented Jan 4, 2026

PR Checklist

Overview

Removes the need for long-lived npm token used for publishing new version and its subsequent need for periodic rotation.

@mark-wiemer you'll need to follow this guide though, just a bit more paperwork to get things in motion D

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.53%. Comparing base (3ea1578) to head (031c417).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5610   +/-   ##
=======================================
  Coverage   93.53%   93.53%           
=======================================
  Files          57       57           
  Lines        4472     4472           
  Branches      922      922           
=======================================
  Hits         4183     4183           
  Misses        289      289           

☔ View full report in Codecov by Sentry.
📢 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.

@mark-wiemer mark-wiemer added core-team issues which must be handled by Mocha's core team status: blocked Waiting for something else to be resolved labels Jan 4, 2026
@mark-wiemer
Copy link
Copy Markdown
Member

Thanks for this! Blocking on me actually taking action to set things up on the npm side, but now is a good time to do so with the v12 betas and whatnot :)

@mark-wiemer mark-wiemer self-assigned this Jan 4, 2026
@mark-wiemer mark-wiemer added this to the v12.0.0 milestone Jan 4, 2026
@JoshuaKGoldberg
Copy link
Copy Markdown
Member

I went through https://www.npmjs.com/package/mocha/access and added release-please.yml as a trusted publisher file for mochajs/mocha. 👍

@mark-wiemer mark-wiemer changed the title build(cd): use OIDC token for trusted publishing to npm chore(ci): use OIDC token for trusted publishing to npm Jan 4, 2026
@mark-wiemer mark-wiemer merged commit dc0fdb7 into mochajs:main Jan 4, 2026
82 of 83 checks passed
mark-wiemer added a commit that referenced this pull request Jan 4, 2026
lennonnikolas pushed a commit to lennonnikolas/mocha that referenced this pull request Jan 24, 2026
Signed-off-by: hainenber <dotronghai96@gmail.com>
lennonnikolas pushed a commit to lennonnikolas/mocha that referenced this pull request Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-team issues which must be handled by Mocha's core team status: blocked Waiting for something else to be resolved

Projects

Development

Successfully merging this pull request may close these issues.

🛠️ Repo: use OIDC for publishing

3 participants