You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2018. It is now read-only.
An automated release script
for npm and python,
built to work with
the conventions
used by my packages.
If you're not me,
there's a good chance
it won't work for you.
What does it do?
Performs sanity checks,
bumps the version number,
updates the change log
and creates a new git tag.
Specifically,
it runs through each of the following steps
in order:
If it looks like there is a lint command
in package.json,
execute the command npm run lint.
If the lint command fails,
the release is aborted.
If it looks like there is a test command
in package.json,
execute the command npm t.
If the test command fails,
the release is aborted.
If it looks like there is a minify command
in package.json,
execute the command npm run minify.
If the minify command fails,
the release is aborted.
Generate a list of commits
made since the last tag.
Based on the commits from 4,
bump the version string like so:
If any commit message
begins with break: or breaking:,
increment the major version.
Otherwise,
if any commit message
begins with feat: or feature:,
increment the minor version.
Otherwise,
increment the patch number.
If bower.json exists,
write the freshly bumped version string
to bower.json.
If component.json exists,
write the freshly bumped version string
to component.json.
If package.json exists,
write the freshly bumped version string
to package.json.
If setup.py exists,
write the freshly bumped version string
to setup.py.
If a change log is detected,
write a summary of the changes
to the change log.
It will recognise any of the following file names:
CHANGELOG.md
CHANGELOG.txt
CHANGELOG
CHANGES.md
CHANGES.txt
CHANGES
HISTORY.md
HISTORY.txt
HISTORY
Commit all changes
made by the preceding steps.
Tag the release
with the freshly bumped version string.