Skip to content

ci: add trusted npm publishing - #2

Merged
mechiland merged 1 commit into
mainfrom
codex/npm-publishing
Jul 17, 2026
Merged

ci: add trusted npm publishing#2
mechiland merged 1 commit into
mainfrom
codex/npm-publishing

Conversation

@mechiland

Copy link
Copy Markdown
Member

What changed

  • add exact npm provenance repository metadata
  • add a tag-triggered GitHub OIDC publishing workflow
  • document the one-time interactive first publish and subsequent trusted-publisher setup

Why

npm requires the package to exist before a trusted publisher can be configured. Version 0.1.0 therefore needs one maintainer/2FA publish; later versions can use short-lived GitHub OIDC credentials without storing a write token.

Validation

  • pnpm test — 11/11
  • pnpm typecheck
  • pnpm build
  • npm pack --dry-run --ignore-scripts — 7 expected package files
  • git diff --check

@mechiland
mechiland marked this pull request as ready for review July 17, 2026 23:46
@mechiland
mechiland merged commit b8d6f69 into main Jul 17, 2026
1 check passed
@mechiland
mechiland deleted the codex/npm-publishing branch July 17, 2026 23:46
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