Socket
Book a DemoInstallSign in
Socket

@aleclarson/release

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aleclarson/release

Publish a new version to Github and NPM

latest
Source
npmnpm
Version
0.6.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

release v0.6.1

Easy semver releases.

How it works

  • stash changes and untracked files (you must use the -s flag)
  • if the files array exists in package.json:
    • delete any paths not in that array
  • delete any paths matching the -x globs
  • update the package version
  • ensure the latest branch exists
  • reset the latest branch to master
  • run these scripts in order:
    • build, prepublish, prepare, prepublishOnly
  • commit changes with a message like 1.0.0
  • create a semver tag like 1.0.0
  • force push to origin/latest
  • end on master branch

CLI

release 0.0.1   # specify exact version
release -p      # bump the patch version
release -m      # bump the minor version, set patch to 0
release -M      # bump the major version, set patch/minor to 0
release -R      # rebase the current version

Flags

  • -p --patch set release type to "patch"
  • -m --minor set release type to "minor"
  • -M --major set release type to "major"
  • -P --pre prepend "pre" when used with -p, -m, or -M; otherwise, set release type to "prerelease"
  • -R --rebase update the current version (useful after a rebase)
  • -s --stash stash changes and untracked files
  • -x --exclude globs excluded from the latest branch
  • --dry see what happens without doing it

FAQs

Package last updated on 27 Oct 2018

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