Fix broken postpublish_utils, add CHANGELOG and postpublish.js scripts to all packages

This commit is contained in:
Brandon Millman
2017-12-08 14:56:56 -08:00
parent a6f9718131
commit 9c6453e129
12 changed files with 97 additions and 6 deletions

View 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;
});