npm version patch && git push && git push --tags
| Command |
Example |
npm version patch |
0.1.0 → 0.1.1 |
npm version minor |
0.1.0 → 0.2.0 |
npm version major |
0.1.0 → 1.0.0 |
npm version bumps package.json version, commits, and creates a v* tag
git push --tags triggers the GitHub Actions publish workflow
- Workflow authenticates via OIDC (no npm token needed)
- Publishes to npm with provenance attestation
gh run list --limit 1
npm view oc-sync version
- Uses OIDC trusted publishing (configured on npmjs.com)
- No long-lived NPM_TOKEN secret required
- Provenance links package to source commit