๐Ÿ“ฆ Turbo87 / auto-dist-tag

Automatically rewrites the "publishConfig.tag" setting in your "package.json" file for you

โ˜… 6 stars โ‘‚ 2 forks ๐Ÿ‘ 6 watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/Turbo87/auto-dist-tag.git
HTTPS git clone https://github.com/Turbo87/auto-dist-tag.git
SSH git clone git@github.com:Turbo87/auto-dist-tag.git
CLI gh repo clone Turbo87/auto-dist-tag
Tobias Bieniek Tobias Bieniek Remove daily schedule from CI workflow f75b12b 1 months ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ src
๐Ÿ“ test
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ .npmignore
๐Ÿ“„ .release-it.js
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ cli.mjs
๐Ÿ“„ LICENSE
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ RELEASE.md
๐Ÿ“„ renovate.json
๐Ÿ“„ README.md

auto-dist-tag ===============================================================================

Build Status npm

Automatically rewrites the publishConfig.tag setting in your
package.json file for you

Install


npm install --global auto-dist-tag

Usage


$ auto-dist-tag --help

  Usage
    $ auto-dist-tag [path]

  Options
    --write, -w  Write calculated dist-tag to the package.json file

auto-dist-tag will automatically figure out what the best dist-tag is based on the version property in your package.json file and the previously published versions unless you explicitly specify a tag yourself.

Have a look at our tests to figure out what tags to expect as output.

Travis CI

If you are using Travis CI to automatically publish your package to npm you should add the following snippet to your .travis.yml file:

before_deploy:
  - npm install -g auto-dist-tag@1
  - auto-dist-tag --write

deploy:
  skip_cleanup: true
  ...

License


This project is licensed under the Apache License 2.0.