Keep npm package version, Git tag, and GitHub Release on the same semver (e.g. 1.26.0 / v1.26.0).
- On
main, set the version inpackage.json(and lockfile if you bump deps). - Update
CHANGELOG.md: move items from[Unreleased]into a dated section[x.y.z]with compare links. - Run locally:
npm run lint,npm run typecheck,npm run build,npm test(mocked HTTP via nock; no API key required). Optional smoke:npm run test:livewithDASHSCOPE_API_KEYset (billable).
npm publish --access publicUse an account with publish rights for this package on npm. Prefer Trusted Publishing or a short-lived automation token from npm, not a long-lived personal token in plaintext.
-
After the npm tarball matches what you intend to ship:
git tag -a vX.Y.Z -m "vX.Y.Z" git push origin vX.Y.Z -
Pushing tag
v*triggers.github/workflows/release.yml, which creates a GitHub Release for that tag (with auto-generated notes). Edit the release description to paste the matching CHANGELOG section if you want richer notes.
-
CHANGELOG.mdupdated forX.Y.Z -
npm run lint/npm run buildOK -
npm publishsucceeded - Tag
vX.Y.Zpushed; Release appears under GitHub Releases