check-tag-matches

1.0.0 • Public • Published

check-tag-matches

Checks if the package.json version matches current tag.

The objective of this package and tool is to be used before publishing an NPM package and verify:

  • The repository was properly tagged.
  • The tag matches the version in the package.json.
  • The publishing is being done from that exact tagged commit.

Installation

$ npm install --save-dev check-tag-matches

Usage

Update the package.json scripts to use the check on prepublishOnly:

{
  "scripts": {
    "prepublishOnly": "tag-matches"
  }
}

License

MIT

Package Sidebar

Install

npm i check-tag-matches

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.85 kB

Total Files

10

Last publish

Collaborators

  • gndelia
  • gabmontes