angular-release
v2.2.0
Published
A tool to builds releases based on Angular conventional changelog preset (inspired by Gulp "Automate release workflow" recipe).
Downloads
218
Readme
Angular Release
A script to build releases based on Standard conventional changelog.
Install
npm i --save-dev angular-release
# or
yarn add -D angular-release
Usage
npx angular-release
How it works
- you choose the kind of release you want to do (see screenshot below)
release-candidate
patch
minor
major
- the script will update your
package.json
file - create or update
CHANGELOG.md
(unless you choosedrelease-candidate
) - commit
chore(release): vX.Y.Z
- push
- tag (unless you choosed
release-candidate
) - and finally create a Github Release (unless you choosed
release-candidate
and only ifGITHUB_OAUTH_TOKEN
environment variable is passed to node)
Github Release
To create a Github Release you must add the GITHUB_OAUTH_TOKEN
environment variable. There is two way to do it :
- create a
.env
file withGITHUB_OAUTH_TOKEN
variable - set the environment variable before running the script:
GITHUB_OAUTH_TOKEN=xxx node_modules/.bin/angular-release
All available env options:
GITHUB_OAUTH_TOKEN
: Github token used to create Github releaseENABLE_RELEASE_CANDIDATE
: Enable release candidate featureRELEASE_CANDIDATE_PREID
: release candidate pre-id string (default: rc)ALLOW_RELEASE_CANDIDATE_TAG
: Allow release candidate to create tag with the chosen versionALLOW_RELEASE_CANDIDATE_CHANGELOG
: Allow release candidate to update changelogALLOW_RELEASE_CANDIDATE_GH_RELEASE
: Allow release candidate to create Github release