Skip to content

A script to build releases based on Standard conventional changelog

License

Notifications You must be signed in to change notification settings

roparz/angular-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

05520b4 · Mar 21, 2024
Mar 13, 2024
Mar 21, 2024
Nov 25, 2018
Aug 28, 2017
Mar 21, 2024
Mar 21, 2024
Aug 28, 2017
Mar 21, 2024
Mar 21, 2024
Mar 21, 2024
Mar 21, 2024

Repository files navigation

npm version

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 choosed release-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 if GITHUB_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 with GITHUB_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 release
  • ENABLE_RELEASE_CANDIDATE: Enable release candidate feature
  • RELEASE_CANDIDATE_PREID: release candidate pre-id string (default: rc)
  • ALLOW_RELEASE_CANDIDATE_TAG: Allow release candidate to create tag with the chosen version
  • ALLOW_RELEASE_CANDIDATE_CHANGELOG: Allow release candidate to update changelog
  • ALLOW_RELEASE_CANDIDATE_GH_RELEASE: Allow release candidate to create Github release

Screenshot

angular release

About

A script to build releases based on Standard conventional changelog

Resources

License

Stars

Watchers

Forks

Packages

No packages published