fix: OIDC npm publishing#23
Merged
mattcosta7 merged 1 commit intomainfrom Feb 19, 2026
Merged
Conversation
- Add publishConfig with access: public and registry for scoped package - Add NPM_CONFIG_PROVENANCE env var instead of --provenance CLI flag - Set NPM_TOKEN to empty string for OIDC token exchange - Add npm update step for latest npm OIDC support - Add concurrency group to prevent parallel releases
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the release/publish configuration to enable successful npm publishing via OIDC (including provenance) for the scoped @github-ui package.
Changes:
- Add
publishConfig(registry +access: public) to the published package’spackage.json. - Adjust the publish GitHub Action to use
NPM_CONFIG_PROVENANCEand OIDC-oriented env vars, and update npm before publishing. - Add workflow concurrency to prevent parallel release runs on the same ref.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/storybook-addon-performance-panel/package.json | Adds publishConfig to ensure correct registry/access behavior when publishing the scoped package. |
| .github/workflows/publish.yml | Adjusts the release workflow for OIDC/provenance publishing and adds concurrency control. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "directory": "packages/storybook-addon-performance-panel" | ||
| }, | ||
| "publishConfig": { | ||
| "access": "public", |
| push: | ||
| branches: [main] | ||
|
|
||
| concurrency: ${{ github.workflow }}-${{ github.ref }} |
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_TOKEN: '' | ||
| NPM_CONFIG_PROVENANCE: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
publishConfigwithaccess: publicandregistryto package.json (required for scoped packages)NPM_CONFIG_PROVENANCE: trueenv var instead of--provenanceCLI flagNPM_TOKEN: ''to enable OIDC token exchange in changesets actionnpm update -g npmstep for latest OIDC supportconcurrencygroup to prevent parallel release runsPrevious publish attempts failed with E404 because:
publishConfig.access: publicfor the scoped@github-uipackage--provenanceCLI flag wasn't propagating correctly through changesetsNPM_TOKEN