4 Commits

Author SHA1 Message Date
Chris Farhood 719c8b7030 ci: publish on version tag push, not master branch push
The previous workflow ran npm publish on every push to master and
gated it via npm view on a stale scoped package name, which made
the check always think the version was unpublished and 403'd
whenever the registry already had it.

Switch the publish job to fire only on push of a v* tag, verify
the tag matches package.json, and use the standard
NODE_AUTH_TOKEN flow via setup-node's registry-url. Tests still
run on master push and PRs.

Release flow: bump version, commit, push master, then
git tag v<version> && git push origin v<version>.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-25 21:43:52 +00:00
Chris Farhood a7b42da7a0 CI: skip publish if version already published
Avoids 403 E403 "cannot publish over previously published version" error
when pushing non-version-bump commits to master.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 10:37:28 -04:00
Chris Farhood 38e5fd8154 Fix CI publish: write .npmrc before npm publish
NPM_TOKEN secret was not being used properly. Write .npmrc with the token before publish.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 08:32:33 -04:00
Chris Farhood f520f0a911 Add GitHub Actions CI workflow
- Runs typecheck and tests on push/PR to master
- Publishes to npm on master push (requires NPM_TOKEN secret)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 08:16:46 -04:00