Skip to content

ci: add npm Trusted Publishing with staged release approval - #14

Merged
Chun-Lin merged 6 commits into
masterfrom
chore/npm-staged-publishing
Nov 6, 2026
Merged

Chun-Lin merged 6 commits into
masterfrom
chore/npm-staged-publishing

Conversation

@Chun-Lin

@Chun-Lin Chun-Lin commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add CI for pull requests and pushes to master (npm ci, tests, package inspection).
  • Add tag-triggered release workflow using npm Trusted Publishing (OIDC) and npm stage publish instead of direct publishing.
  • Document release versioning, npm trusted publisher configuration and manual 2FA approval.

Security

  • No npm tokens or repository secrets required.
  • Release staging requires a vX.Y.Z tag matching package.json.
  • npm publish and npm dist-tag permissions can remain disabled on npm.
  • npm maintainer must explicitly approve each staged release in npm with 2FA.

Checklist

  • Verify GitHub Actions CI succeeds on this PR
  • Confirm npm Trusted Publisher owner Chun-Lin, repo react-select-country-list, workflow publish.yml, environment blank
  • Merge this PR only when approved
  • Merge desired changes and bump version before creating a release tag

No npm release or stage was triggered by this PR.

@Chun-Lin
Chun-Lin marked this pull request as ready for review November 6, 2026 21:49
@Chun-Lin
Chun-Lin merged commit c659ddf into master Nov 6, 2026
3 checks passed
@Chun-Lin
Chun-Lin deleted the chore/npm-staged-publishing branch November 6, 2026 22:05
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.

1 participant