Plexus
Plexus copied to clipboard
Enable fully automated npm publishing via Trusted Publishing
Context
The repository now has the release automation pieces in place:
scripts/release-npm.mjsverifies the exact npm tarball before publish..github/workflows/publish-npm.ymlis wired to publish onv*.*.*tags.v0.0.4was pushed and[email protected]was manually published after the GitHub Actions publish job failed.- Local and registry smoke tests passed for
npm install plexus-agent-config@latest,plexus detect, andplexus start.
The remaining gap is npm account/package-side configuration for fully automatic publishing.
Tasks
- [ ] In npmjs.com, open
plexus-agent-configpackage settings. - [ ] Add a Trusted Publisher for GitHub Actions:
- Organization/user:
miniLV - Repository:
Plexus - Workflow filename:
publish-npm.yml - Environment: leave empty unless GitHub environments are added later.
- Organization/user:
- [ ] Re-run the failed
publish npmworkflow or validate on the next tag. - [ ] Confirm the workflow publishes without
NPM_TOKEN. - [ ] Confirm
npm view plexus-agent-config version dist-tags.latestmatches the Git tag/package version. - [ ] Confirm a clean install works:
npm install plexus-agent-config@latest && npx plexus-agent-config@latest start. - [ ] Optional: after Trusted Publishing works, consider npm package setting "Require two-factor authentication and disallow tokens".
Notes
Do not tag future releases as v0.02. Keep semver aligned as package.json version 0.0.x and Git tag v0.0.x.
Done.
- npm Trusted Publishing is configured for
miniLV/Plexusand.github/workflows/publish-npm.yml. v0.0.7was published by GitHub Actions withoutNPM_TOKEN.npm view plexus-agent-config version dist-tags.latestreturns0.0.7.- Clean install smoke test passed with
npm install plexus-agent-config@latest,plexus help,plexus detect, andplexus startreturning HTTP 200.
Closing this as complete.