Skip to content

Migrate to npm's Trusted Publishing - #57

Merged
phanect merged 2 commits into
mainfrom
chore-npm-trusted-publishing
Dec 2, 2025
Merged

phanect merged 2 commits into
mainfrom
chore-npm-trusted-publishing

Conversation

@phanect

@phanect phanect commented Dec 2, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the npm package publishing workflow from using a manually configured NPM_AUTH_TOKEN secret to npm's Trusted Publishing, which leverages OpenID Connect (OIDC) tokens for more secure authentication. This eliminates the need to manage long-lived authentication tokens.

Key Changes:

  • Removed the custom mise release task that was used for publishing
  • Added OIDC permissions to the GitHub Actions publish job to enable Trusted Publishing
  • Replaced manual npm authentication setup with automated OIDC-based authentication
  • Added pnpm-workspace.yaml to .npmignore to prevent it from being included in published packages

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
mise.toml Removed the custom release task that wrapped npm publish
.npmignore Added pnpm-workspace.yaml to exclusion list to prevent including workspace configuration in published package
.github/workflows/actions.yml Added id-token: write permission for OIDC authentication, removed manual npm token setup, and simplified publish command to use npm publish directly

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

Comment thread .github/workflows/actions.yml
@phanect
phanect force-pushed the chore-npm-trusted-publishing branch from eff61ab to c723b5d Compare December 2, 2025 03:05
@phanect
phanect enabled auto-merge (rebase) December 2, 2025 03:05
@phanect
phanect merged commit b219dbf into main Dec 2, 2025
8 checks passed
@phanect
phanect deleted the chore-npm-trusted-publishing branch December 2, 2025 03:07
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