Fix broken postpublish_utils, add CHANGELOG and postpublish.js scripts to all packages
This commit is contained in:
parent
a6f9718131
commit
9c6453e129
@ -10,13 +10,14 @@
|
|||||||
"lerna:publish": "yarn install; lerna run clean; lerna run build; lerna publish --registry=https://registry.npmjs.org/"
|
"lerna:publish": "yarn install; lerna run clean; lerna run build; lerna publish --registry=https://registry.npmjs.org/"
|
||||||
},
|
},
|
||||||
"config": {
|
"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": {
|
"devDependencies": {
|
||||||
"lerna": "^2.5.1",
|
"@0xproject/utils": "^0.1.0",
|
||||||
"async-child-process": "^1.1.1",
|
"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",
|
"publish-release": "0xproject/publish-release",
|
||||||
"ethereumjs-testrpc": "6.0.3"
|
"semver-sort": "^0.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
packages/abi-gen/CHANGELOG.md
Normal file
4
packages/abi-gen/CHANGELOG.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# CHANGELOG
|
||||||
|
|
||||||
|
vx.x.x
|
||||||
|
------------------------
|
14
packages/abi-gen/scripts/postpublish.js
Normal file
14
packages/abi-gen/scripts/postpublish.js
Normal file
@ -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;
|
||||||
|
});
|
4
packages/subproviders/CHANGELOG.md
Normal file
4
packages/subproviders/CHANGELOG.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# CHANGELOG
|
||||||
|
|
||||||
|
vx.x.x
|
||||||
|
------------------------
|
14
packages/subproviders/scripts/postpublish.js
Normal file
14
packages/subproviders/scripts/postpublish.js
Normal file
@ -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;
|
||||||
|
});
|
4
packages/types/CHANGELOG.md
Normal file
4
packages/types/CHANGELOG.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# CHANGELOG
|
||||||
|
|
||||||
|
vx.x.x
|
||||||
|
------------------------
|
14
packages/types/scripts/postpublish.js
Normal file
14
packages/types/scripts/postpublish.js
Normal file
@ -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;
|
||||||
|
});
|
4
packages/utils/CHANGELOG.md
Normal file
4
packages/utils/CHANGELOG.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# CHANGELOG
|
||||||
|
|
||||||
|
vx.x.x
|
||||||
|
------------------------
|
14
packages/utils/scripts/postpublish.js
Normal file
14
packages/utils/scripts/postpublish.js
Normal file
@ -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;
|
||||||
|
});
|
4
packages/web3-wrapper/CHANGELOG.md
Normal file
4
packages/web3-wrapper/CHANGELOG.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# CHANGELOG
|
||||||
|
|
||||||
|
vx.x.x
|
||||||
|
------------------------
|
14
packages/web3-wrapper/scripts/postpublish.js
Normal file
14
packages/web3-wrapper/scripts/postpublish.js
Normal file
@ -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;
|
||||||
|
});
|
@ -1,7 +1,7 @@
|
|||||||
const execAsync = require('async-child-process').execAsync;
|
const execAsync = require('async-child-process').execAsync;
|
||||||
const semverSort = require('semver-sort');
|
const semverSort = require('semver-sort');
|
||||||
import {promisify} from '@0xproject/utils';
|
|
||||||
const publishRelease = require('publish-release');
|
const publishRelease = require('publish-release');
|
||||||
|
const promisify = require('@0xproject/utils').promisify;
|
||||||
|
|
||||||
const publishReleaseAsync = promisify(publishRelease);
|
const publishReleaseAsync = promisify(publishRelease);
|
||||||
const githubPersonalAccessToken = process.env.GITHUB_PERSONAL_ACCESS_TOKEN_0X_JS;
|
const githubPersonalAccessToken = process.env.GITHUB_PERSONAL_ACCESS_TOKEN_0X_JS;
|
||||||
@ -37,7 +37,7 @@ module.exports = {
|
|||||||
repo: '0x.js',
|
repo: '0x.js',
|
||||||
tag: tag,
|
tag: tag,
|
||||||
name: releaseName,
|
name: releaseName,
|
||||||
notes: 'TODO',
|
notes: 'N/A',
|
||||||
draft: false,
|
draft: false,
|
||||||
prerelease: false,
|
prerelease: false,
|
||||||
reuseRelease: true,
|
reuseRelease: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user