Skip to content

Commit

Permalink
chore: allow nextVersion to be overridden by NEXT_VERSION
Browse files Browse the repository at this point in the history
By popular demand!
  • Loading branch information
flotwig authored Mar 17, 2021
1 parent 6abc245 commit 2872a35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/get-next-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const currentVersion = require('../package.json').version
const bump = Bluebird.promisify(bumpCb)
const paths = ['packages', 'cli']

let nextVersion
// allow the semantic next version to be overridden by environment
let nextVersion = process.env.NEXT_VERSION

const getNextVersionForPath = async (path) => {
const { releaseType } = await bump({ preset: 'angular', path })
Expand Down

0 comments on commit 2872a35

Please sign in to comment.