Skip to content

Commit

Permalink
include PR number in pr versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Jun 30, 2020
1 parent 9a7aa0b commit dc62722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/set-package-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ try {
intermediateVersion = intermediateVersion.substring(1);

const suffix = TRAVIS_MODE === 'netlifyPr'
? `pr.${getCommitHash().substr(0, 8)}`
? `pr.${process.env.REVIEW_ID/* set by netlify */}.${getCommitHash().substr(0, 8)}`
: TRAVIS_MODE === 'netlifyBranch'
? `branch.${process.env.BRANCH/* set by netlify */.replace(/[^a-zA-Z0-9]/g, '-')}.${getCommitHash().substr(0, 8)}`
: `0.alpha.${getCommitNum()}`;
Expand Down

0 comments on commit dc62722

Please sign in to comment.