Skip to content

Update GitHub Actions workflow for npm publishing#82

Open
gracepark wants to merge 1 commit intogithub:mainfrom
gracepark:patch-1
Open

Update GitHub Actions workflow for npm publishing#82
gracepark wants to merge 1 commit intogithub:mainfrom
gracepark:patch-1

Conversation

@gracepark
Copy link
Copy Markdown

Part of: https://github.com/github/web-systems/issues/4309

OIDC migration - Added permissions for contents and id-token in the publish job. Updated npm publish command to include provenance.

Added permissions for contents and id-token in the publish job. Updated npm publish command to include provenance.
Copilot AI review requested due to automatic review settings May 8, 2026 19:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the npm release publishing GitHub Actions workflow to support OIDC-based provenance generation during npm publish, aligning with the referenced OIDC migration work.

Changes:

  • Add explicit contents: read and id-token: write permissions to the publish job.
  • Switch the publish step to npm publish --provenance and remove the legacy token-based publish invocation.
Show a summary per file
File Description
.github/workflows/publish.yml Adds OIDC permissions and publishes to npm with provenance enabled.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

- run: npm whoami; npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: npm publish --provenance
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.

2 participants