-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from holidayextras/PAY-868
add node script to release
- Loading branch information
Showing
11 changed files
with
3,607 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
coverage | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env node | ||
|
||
const async = require('async') | ||
const utils = require('../src/utils') | ||
|
||
async.waterfall([ | ||
utils.checkPrerequisites, | ||
utils.confirmOnFeatureBranch, | ||
utils.getBuiltAssetStats | ||
], err => { | ||
if (err) console.warn(err) // don't throw, just let us know | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env node | ||
|
||
const async = require('async') | ||
const utils = require('../src/utils') | ||
|
||
async.waterfall([ | ||
utils.checkPrerequisites, | ||
utils.checkAlreadyReleased | ||
], err => { | ||
if (err) { | ||
console.error(err) | ||
process.exit(1) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const async = require('async') | ||
const utils = require('../src/utils') | ||
const releaseBranch = process.env.RELEASE_BRANCH || 'master' | ||
|
||
async.waterfall([ | ||
utils.checkPrerequisites, | ||
utils.checkBranch.bind(utils, releaseBranch), | ||
utils.checkAlreadyReleased, | ||
utils.untagMajorVersion, | ||
utils.tagMajorVersion, | ||
utils.untagMinorVersion, | ||
utils.tagMinorVersion, | ||
utils.getCommitMessagesSinceLastRelease, | ||
utils.tagAbsoluteVersion | ||
], (err, result) => { | ||
if (err) console.warn(err) // don't throw, just let us know | ||
console.log('done') | ||
}) |
Oops, something went wrong.