Add postpublish scripts for all the subpackages so that they each publish a release to github
This commit is contained in:
13
packages/connect/scripts/postpublish.js
Normal file
13
packages/connect/scripts/postpublish.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
|
||||
|
||||
const subPackageName = '0xproject/connect';
|
||||
|
||||
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
|
||||
.then(function(result) {
|
||||
const releaseName = subPackageName + ' v' + result.version;
|
||||
const assets = [];
|
||||
return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
|
||||
})
|
||||
.catch (function(err) {
|
||||
throw err;
|
||||
});
|
Reference in New Issue
Block a user