From 9c6453e12969bb3564e3146e66806476d7cd7b21 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Fri, 8 Dec 2017 14:56:56 -0800 Subject: Fix broken postpublish_utils, add CHANGELOG and postpublish.js scripts to all packages --- packages/abi-gen/CHANGELOG.md | 4 ++++ packages/abi-gen/scripts/postpublish.js | 14 ++++++++++++++ packages/subproviders/CHANGELOG.md | 4 ++++ packages/subproviders/scripts/postpublish.js | 14 ++++++++++++++ packages/types/CHANGELOG.md | 4 ++++ packages/types/scripts/postpublish.js | 14 ++++++++++++++ packages/utils/CHANGELOG.md | 4 ++++ packages/utils/scripts/postpublish.js | 14 ++++++++++++++ packages/web3-wrapper/CHANGELOG.md | 4 ++++ packages/web3-wrapper/scripts/postpublish.js | 14 ++++++++++++++ 10 files changed, 90 insertions(+) create mode 100644 packages/abi-gen/CHANGELOG.md create mode 100644 packages/abi-gen/scripts/postpublish.js create mode 100644 packages/subproviders/CHANGELOG.md create mode 100644 packages/subproviders/scripts/postpublish.js create mode 100644 packages/types/CHANGELOG.md create mode 100644 packages/types/scripts/postpublish.js create mode 100644 packages/utils/CHANGELOG.md create mode 100644 packages/utils/scripts/postpublish.js create mode 100644 packages/web3-wrapper/CHANGELOG.md create mode 100644 packages/web3-wrapper/scripts/postpublish.js (limited to 'packages') diff --git a/packages/abi-gen/CHANGELOG.md b/packages/abi-gen/CHANGELOG.md new file mode 100644 index 000000000..b4cce6be0 --- /dev/null +++ b/packages/abi-gen/CHANGELOG.md @@ -0,0 +1,4 @@ +# CHANGELOG + +vx.x.x +------------------------ diff --git a/packages/abi-gen/scripts/postpublish.js b/packages/abi-gen/scripts/postpublish.js new file mode 100644 index 000000000..7fa452b08 --- /dev/null +++ b/packages/abi-gen/scripts/postpublish.js @@ -0,0 +1,14 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); + +const subPackageName = packageJSON.name; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version); + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); diff --git a/packages/subproviders/CHANGELOG.md b/packages/subproviders/CHANGELOG.md new file mode 100644 index 000000000..b4cce6be0 --- /dev/null +++ b/packages/subproviders/CHANGELOG.md @@ -0,0 +1,4 @@ +# CHANGELOG + +vx.x.x +------------------------ diff --git a/packages/subproviders/scripts/postpublish.js b/packages/subproviders/scripts/postpublish.js new file mode 100644 index 000000000..7fa452b08 --- /dev/null +++ b/packages/subproviders/scripts/postpublish.js @@ -0,0 +1,14 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); + +const subPackageName = packageJSON.name; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version); + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md new file mode 100644 index 000000000..b4cce6be0 --- /dev/null +++ b/packages/types/CHANGELOG.md @@ -0,0 +1,4 @@ +# CHANGELOG + +vx.x.x +------------------------ diff --git a/packages/types/scripts/postpublish.js b/packages/types/scripts/postpublish.js new file mode 100644 index 000000000..7fa452b08 --- /dev/null +++ b/packages/types/scripts/postpublish.js @@ -0,0 +1,14 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); + +const subPackageName = packageJSON.name; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version); + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md new file mode 100644 index 000000000..b4cce6be0 --- /dev/null +++ b/packages/utils/CHANGELOG.md @@ -0,0 +1,4 @@ +# CHANGELOG + +vx.x.x +------------------------ diff --git a/packages/utils/scripts/postpublish.js b/packages/utils/scripts/postpublish.js new file mode 100644 index 000000000..7fa452b08 --- /dev/null +++ b/packages/utils/scripts/postpublish.js @@ -0,0 +1,14 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); + +const subPackageName = packageJSON.name; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version); + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); diff --git a/packages/web3-wrapper/CHANGELOG.md b/packages/web3-wrapper/CHANGELOG.md new file mode 100644 index 000000000..b4cce6be0 --- /dev/null +++ b/packages/web3-wrapper/CHANGELOG.md @@ -0,0 +1,4 @@ +# CHANGELOG + +vx.x.x +------------------------ diff --git a/packages/web3-wrapper/scripts/postpublish.js b/packages/web3-wrapper/scripts/postpublish.js new file mode 100644 index 000000000..7fa452b08 --- /dev/null +++ b/packages/web3-wrapper/scripts/postpublish.js @@ -0,0 +1,14 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); + +const subPackageName = packageJSON.name; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version); + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); -- cgit v1.2.3