diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2017-12-09 06:56:56 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2017-12-09 07:01:52 +0800 |
commit | 9c6453e12969bb3564e3146e66806476d7cd7b21 (patch) | |
tree | 868178797e4250299b5da300fb0f5812f21dd2f8 | |
parent | a6f97181310c9acba176b2a28ffba1ca7d53727d (diff) | |
download | dexon-sol-tools-9c6453e12969bb3564e3146e66806476d7cd7b21.tar dexon-sol-tools-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.gz dexon-sol-tools-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.bz2 dexon-sol-tools-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.lz dexon-sol-tools-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.xz dexon-sol-tools-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.zst dexon-sol-tools-9c6453e12969bb3564e3146e66806476d7cd7b21.zip |
Fix broken postpublish_utils, add CHANGELOG and postpublish.js scripts to all packages
-rw-r--r-- | package.json | 9 | ||||
-rw-r--r-- | packages/abi-gen/CHANGELOG.md | 4 | ||||
-rw-r--r-- | packages/abi-gen/scripts/postpublish.js | 14 | ||||
-rw-r--r-- | packages/subproviders/CHANGELOG.md | 4 | ||||
-rw-r--r-- | packages/subproviders/scripts/postpublish.js | 14 | ||||
-rw-r--r-- | packages/types/CHANGELOG.md | 4 | ||||
-rw-r--r-- | packages/types/scripts/postpublish.js | 14 | ||||
-rw-r--r-- | packages/utils/CHANGELOG.md | 4 | ||||
-rw-r--r-- | packages/utils/scripts/postpublish.js | 14 | ||||
-rw-r--r-- | packages/web3-wrapper/CHANGELOG.md | 4 | ||||
-rw-r--r-- | packages/web3-wrapper/scripts/postpublish.js | 14 | ||||
-rw-r--r-- | scripts/postpublish_utils.js | 4 |
12 files changed, 97 insertions, 6 deletions
diff --git a/package.json b/package.json index e15ee9239..e6230bf18 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,14 @@ "lerna:publish": "yarn install; lerna run clean; lerna run build; lerna publish --registry=https://registry.npmjs.org/" }, "config": { - "mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic" + "mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic" }, "devDependencies": { - "lerna": "^2.5.1", + "@0xproject/utils": "^0.1.0", "async-child-process": "^1.1.1", - "semver-sort": "^0.0.4", + "ethereumjs-testrpc": "6.0.3", + "lerna": "^2.5.1", "publish-release": "0xproject/publish-release", - "ethereumjs-testrpc": "6.0.3" + "semver-sort": "^0.0.4" } } 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; + }); diff --git a/scripts/postpublish_utils.js b/scripts/postpublish_utils.js index e9563a51c..c4ca917da 100644 --- a/scripts/postpublish_utils.js +++ b/scripts/postpublish_utils.js @@ -1,7 +1,7 @@ const execAsync = require('async-child-process').execAsync; const semverSort = require('semver-sort'); -import {promisify} from '@0xproject/utils'; const publishRelease = require('publish-release'); +const promisify = require('@0xproject/utils').promisify; const publishReleaseAsync = promisify(publishRelease); const githubPersonalAccessToken = process.env.GITHUB_PERSONAL_ACCESS_TOKEN_0X_JS; @@ -37,7 +37,7 @@ module.exports = { repo: '0x.js', tag: tag, name: releaseName, - notes: 'TODO', + notes: 'N/A', draft: false, prerelease: false, reuseRelease: true, |