Releasing
Publishing is intentionally separate from ordinary CI and requires maintainer authorization.
One-time setup
- Confirm the public npm package name
agent-kudosremains available. - Create or sign in to the intended npm organization/account and enable two-factor authentication.
- On npmjs.com, configure a trusted publisher for:
- GitHub owner:
Coaden - Repository:
agent-kudos - Workflow filename:
release.yml - Environment:
npmif environment protection is enabled - Allowed action:
npm publish
- GitHub owner:
- In GitHub, optionally create an
npmenvironment with required reviewers. - Enable GitHub Pages with GitHub Actions as the source.
The release workflow uses OIDC trusted publishing, requires no long-lived npm token, and receives only contents: read and id-token: write permissions. npm trusted publishing generates provenance automatically for this public repository/package combination.
Release checklist
- Update
CHANGELOG.mdand remove theUnreleasedplaceholder for the version. - Set the version with
npm version <major|minor|patch>and review the generated commit/tag. -
Run:
npm ci npm run format:check npm run lint npm run typecheck npm test npm run test:coverage npm run pack:check npm pack --dry-run - Push the version commit and tag.
- Create an intentional GitHub Release for the tag.
- Review the
Release npm packageworkflow and protected environment approval. - Verify the npm page, provenance, tarball contents, both binaries, package exports, repository URL, and release notes.
Do not publish from a developer laptop as the normal path, do not add an NPM_TOKEN fallback casually, and do not reuse the Pages workflow for npm publication.