Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

auto-dist-tag

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-dist-tag

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

latest
Source
npmnpm
Version
2.1.1
Version published
Weekly downloads
759
-73.15%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 10 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts