Repository navigation
Conversation
Push to main publishes when package.json's version isn't on npm yet, then tags v<version>. First publish uses the NPM_TOKEN secret; switch to npm Trusted Publishing afterwards. Also runs contacts.test.ts in CI, which the explicit test list had missed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
publishjob toci.yml, modelled on zalify-cli'spublish.yml.package.json's version with npm. If the version is new, it runsnpm publish --access public --provenanceand tags the commitv<version>. To release, bump the version.NPM_TOKENrepo secret, because npm can only attach a trusted publisher to a package that already exists. After 0.3.0 is out, add a trusted publisher on npmjs.com (repository zalify/zalify-node, workflowci.yml) and delete the secret. npm tries OIDC first and falls back to the token, so both work in the meantime.test/contacts.test.tsin CI. The explicit test list had missed it; it passes.Locally: 12/12 tests pass.
npm pack --dry-runproduces@zalify/[email protected]with 7 files and 10.8 kB.Merge only after
NPM_TOKENis added. Without it, the publish job on main goes red.🤖 Generated with Claude Code