@tepez/npm-publish-by-tag

0.1.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @tepez/npm-publish-by-tag

Weekly Downloads

69

Version

0.1.5

License

ISC

Unpacked Size

4.31 kB

Total Files

5

Last publish

Collaborators

  • tomyam1