patch-version
Patch version control tag version to package.json when deploy to npm on CI.
Last updated 11 years ago by lijunle .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install patch-version 
SYNC missed versions from official npm registry.

patch-version Build Status

Patch git tag version to package.json before publish to npm.

Usage

  1. Install patch-version from npm.
  2. Stick your package.json to one version. My suggestion is 0.0.1, as this package does.
  3. Add patch-version command to deployment hook in your CI configuration file.
  4. When you want to publish a new version to npm, create a tag with a valid semver, push it to trigger CI build and deployment. The tag version will be patched to package.json before publish to npm.

Supported CI

  • Travis
  • GitLab
  • AppVeyor

Example

Here is the example configuration in .travis.yml for Travis CI:

before_deploy:
  - ./node_modules/.bin/patch-version

deploy:
  provider: npm
  email: "my@email"
  api_key:
    secure: "secure-key"

License

MIT License.

Current Tags

  • 0.1.1                                ...           latest (11 years ago)

4 Versions

  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
Maintainers (1)
Downloads
Total 11
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 4
Dependencies (0)
None
Dev Dependencies (4)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE