Skip to content

chore(NODE-7563): migrate 5.x release workflows to npm trusted publishers#4942

Closed
tadjik1 wants to merge 2 commits into
5.xfrom
chore/NODE-7562-npm-trusted-publishers-5x
Closed

chore(NODE-7563): migrate 5.x release workflows to npm trusted publishers#4942
tadjik1 wants to merge 2 commits into
5.xfrom
chore/NODE-7562-npm-trusted-publishers-5x

Conversation

@tadjik1
Copy link
Copy Markdown
Member

@tadjik1 tadjik1 commented May 18, 2026

Description

Summary of Changes

Migrates release-5.x.yml, release-alpha.yml, and release-nightly.yml on the 5.x branch to npm Trusted Publishing by dispatching to the centralized npm-publish.yml workflow (lives on main, introduced in #4930). Adds dispatch-and-wait.mjs helper script — required because GitHub Actions loads workflow files from the triggering branch, but the script defaults to loading npm-publish.yml from main.

Notes for Reviewers

The 5.x branch uses an older single-job workflow structure with a local .github/actions/setup composite action instead of drivers-github-tools. The dispatch pattern is identical to main; only the surrounding YAML structure differs.

Main PR: #4941 — 6.x PR: #4943

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

…hers

Replace NPM_TOKEN with OIDC dispatch to npm-publish.yml in
release-5.x.yml, release-alpha.yml, and release-nightly.yml;
add dispatch-and-wait.mjs helper script.
Move alphaVersion input to an env var so bash does not perform
command substitution on user-controlled input (semgrep finding).
@tadjik1 tadjik1 marked this pull request as ready for review May 18, 2026 11:06
@tadjik1 tadjik1 changed the title chore(NODE-7562): migrate 5.x release workflows to npm trusted publishers chore(NODE-7563): migrate 5.x release workflows to npm trusted publishers May 18, 2026
@tadjik1
Copy link
Copy Markdown
Member Author

tadjik1 commented May 18, 2026

closed as we are not going to backport these changes yet

@tadjik1 tadjik1 closed this May 18, 2026
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.

1 participant