Skip to content

Commit

Permalink
Ignore pre-release versions on version bump commits
Browse files Browse the repository at this point in the history
  • Loading branch information
tulios committed Jul 31, 2019
1 parent 2ff19c2 commit 226230c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/pipeline/checkBetaEligibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ const hasEligibleFiles = changedFiles.some(filePath => {
return isEligigle
})

if (hasEligibleFiles) {
const isBumpVersionCommit = changedFiles.every(filePath =>
['package.json', 'CHANGELOG.md'].includes(filePath)
)

if (hasEligibleFiles && !isBumpVersionCommit) {
console.log('Build has eligible files, continue to pre-release')
} else {
console.log('Skip pre-release, no changes in relevant files')
console.log(`isBumpVersionCommit: ${isBumpVersionCommit}`)
console.log('##vso[task.setvariable variable=SKIP_PRE_RELEASE;isOutput=true]true')
}

0 comments on commit 226230c

Please sign in to comment.