Skip to content

fix: migrate npm publishing to OIDC - #109

Merged
susangao21 merged 1 commit into
mainfrom
fix/npm-trusted-publishing
Oct 29, 2026
Merged

susangao21 merged 1 commit into
mainfrom
fix/npm-trusted-publishing

Conversation

@susangao21

@susangao21 susangao21 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Migrate @salesforce/plugin-flow from token-based npm publishing to npm Trusted Publishing using GitHub Actions OIDC.

Changes

  • Grant the publishing job id-token: write and contents: read permissions.
  • Enable trustedPublishing in the shared Salesforce CLI npm publishing workflow.
  • Upgrade @salesforce/dev-scripts from v11 to v15, including ESLint 10 and TypeScript 6.
  • Replace the legacy ESLint configuration with flat config and resolve the resulting lint and TypeScript compatibility issues.

Validation

  • corepack yarn@1.22.22 test
  • Repository pre-commit hooks
  • Repository pre-push hooks
  • GitHub Actions test matrix

Cutover

Important

Do not merge this PR until the Platform CLI team confirms that npm Trusted Publishing has been configured.

Setting Value
GitHub organization salesforcecli
Repository plugin-flow
Calling workflow onRelease.yml
Environment Leave blank

After configuration is confirmed, merge this PR during the coordinated release window and complete the first successful publish within 24 hours.

@susangao21
susangao21 marked this pull request as ready for review October 29, 2026 15:40
@susangao21
susangao21 merged commit 6558cbc into main Oct 29, 2026
14 checks passed
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