0.1.5 • Published 5 years ago

@tepez/npm-publish-by-tag v0.1.5

Weekly downloads
271
License
ISC
Repository
github
Last release
5 years ago

npm-publish-by-tag

Script for publishing to NPM based on tagged git commit

Usage

  1. Update the version in the package.json file and commit the change.
  2. Tag the commit with a semver version.
  3. Push changes, with the tags

  4. On the CI server:

npm install @tepez/npm-publish-by-tag@latest
node node_modules/@tepez/npm-publish-by-tag

Notes

  • This tool should be used with npm update or an alternative such as np.

If you use np, make sure to include the --no-publish flag since the publishing is going to be done from the CI server.

For instance, this package uses np when calling npm run update.

  • Initial publish to NPM has to be done manually.