Skip to content

CLOUDPLAT-3162: add npm OIDC publish workflow (polylabel)#126

Closed
haseebehsan wants to merge 1 commit into
masterfrom
cloudplat-3162/add-npm-oidc-publish
Closed

CLOUDPLAT-3162: add npm OIDC publish workflow (polylabel)#126
haseebehsan wants to merge 1 commit into
masterfrom
cloudplat-3162/add-npm-oidc-publish

Conversation

@haseebehsan

Copy link
Copy Markdown

Summary

  • .github/workflows/npm-release.yml: new workflow_dispatch workflow that publishes to npm and creates a GitHub release using OIDC Trusted Publishing — no npm tokens required.
  • CONTRIBUTING.md: documents the release process — bump version, update CHANGELOG, merge PR, trigger workflow from Actions tab.
  • package.json: patch version bump and publishConfig: { access: "public" } for the scoped package.

Prerequisites before merging

The workflow uses an npm-release GitHub Environment as a release gate. Before merging, create it in this repo:

  1. Go to Settings → Environments → New environment, name it npm-release
  2. Under Deployment branches, restrict to the default branch (master)
  3. Under Required reviewers, add your team (or mapbox/team-mapbox to allow any Mapbox employee to approve)

Without this environment, the workflow will fail when triggered.

Trigger: once merged, run from the Actions tab → NPM release → Run workflow → approve the environment gate.

Ticket: https://mapbox.atlassian.net/browse/CLOUDPLAT-3162

@haseebehsan haseebehsan requested a review from a team as a code owner June 24, 2026 10:23
@haseebehsan haseebehsan added the ai AI coding agents co-authored the code label Jun 24, 2026
@haseebehsan haseebehsan requested review from mapboxit and removed request for a team June 24, 2026 10:23
@mourner mourner closed this Jun 24, 2026
@mourner mourner deleted the cloudplat-3162/add-npm-oidc-publish branch June 25, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai AI coding agents co-authored the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants