Skip to content

Conversation

@jaissica12
Copy link

Summary

  • npm now supports OIDC and requires an update to the release.yml and release.sh to support this
  • Bumped up below versions:
    • Node to LTS 24.x

Testing Plan

{explain how this has been tested, and what additional testing should be done}

Master Issue

Closes https://go/j/SDKE-683

Copy link
Contributor

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

This pull request updates the npm publishing workflow to use OIDC (OpenID Connect) authentication instead of token-based authentication, and upgrades Node.js to version 24 across all CI workflows.

Changes:

  • Migrated npm publishing from token-based authentication to OIDC trusted publishing
  • Upgraded Node.js from version 18 to version 24 across all GitHub Actions workflows
  • Added npm provenance configuration to package.json

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
release.sh Simplified script to use OIDC authentication, removing manual NPM_TOKEN handling
package.json Added publishConfig section with provenance settings for npm trusted publishing
.github/workflows/release.yml Added OIDC permissions, registry-url configuration, and Node.js 24 upgrade
.github/workflows/pull-request.yml Updated Node.js version from 18 to 24 across all jobs

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

Comment on lines +33 to +35
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org"
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

The indentation in the publishConfig section uses 8 spaces instead of 2 spaces, which is inconsistent with the rest of the package.json file. This should be corrected to maintain consistent formatting.

Suggested change
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org"
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org"

Copilot uses AI. Check for mistakes.

- name: Install node modules
run: yarn install

Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

Trailing whitespace on line 68 should be removed for cleaner formatting.

Suggested change

Copilot uses AI. Check for mistakes.
],
"publishConfig": {
"access": "public",
"provenance": true,
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

The 'provenance' field is redundant in publishConfig since it's already specified as a CLI flag '--provenance' in release.sh. While both are valid, having it in only one location would be clearer. Consider removing it from either package.json or the CLI command.

Suggested change
"provenance": true,

Copilot uses AI. Check for mistakes.
touch .npmrc;
echo "//registry.npmjs.org/:_authToken=$1" > .npmrc;
npm publish;
npm publish --provenance --access public
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

The '--access public' flag is redundant since it's already specified in package.json publishConfig. While both are valid, having it in only one location would be clearer. Consider removing it from the CLI command.

Suggested change
npm publish --provenance --access public
npm publish --provenance

Copilot uses AI. Check for mistakes.
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