Release

Using GitFlow branching model and tools for Versioning, Semantic Release

standard-version

standard-versionwill do the following:

  1. "Bump" the version in package.json

  2. Update the CHANGELOG.md file

  3. Commit the package.json and CHANGELOG.md files

  4. Tag a new release in the git history

standard-version commands

npm whoami
# create the initial release and create the `CHANGELOG.md`
npm run release --first-release --dry-run
# This will tag a release without bumping the version in package.json (et al.).
# Cut a Release
npm run release --dry-run
# create a pre-release instead of a regular one
npm run release --prereleas --dry-run
# cut a new alpha release version
npm run release --prerelease alpha --dry-run
# fource a version
npm run release --release-as 1.1.0 --dry-run

Developer Workflow

versioning and release

"release": "standard-version && git push — follow-tags origin master && npm publish"

Last updated

Was this helpful?