Skip to content

Update publish workflow to use latest actions and permissions#36

Open
gracepark wants to merge 1 commit intomainfrom
gp/oidc-migration
Open

Update publish workflow to use latest actions and permissions#36
gracepark wants to merge 1 commit intomainfrom
gp/oidc-migration

Conversation

@gracepark
Copy link
Copy Markdown

Copilot AI review requested due to automatic review settings May 8, 2026 19:17
@gracepark gracepark requested a review from a team as a code owner May 8, 2026 19:17
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 workflow to use newer GitHub Actions and shift publishing authentication toward OIDC-based trusted publishing with npm provenance, as part of an OIDC migration effort.

Changes:

  • Bumped actions/checkout and actions/setup-node to @v4 and set Node to 24.
  • Added job-level permissions (contents: read, id-token: write) to support OIDC.
  • Switched publish command to npm publish --provenance and removed secret-based NODE_AUTH_TOKEN usage.
Show a summary per file
File Description
.github/workflows/publish.yml Modernizes the publish workflow actions/Node version and updates publishing to use OIDC permissions with npm provenance.

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: 3

Comment thread .github/workflows/publish.yml
Comment on lines +12 to +27
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 24
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: npm test
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- run: npm whoami; npm --ignore-scripts publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: npm --ignore-scripts publish --provenance
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
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