aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-18 06:44:56 +0800
committerFabio Berger <me@fabioberger.com>2017-11-18 06:44:56 +0800
commit7f595169c1bc02873d47a5b7411dfb7414c19041 (patch)
treeb621b7da43115fbfb7f9cc3123463638db1431b5 /packages
parentabee7d25a4e9bee81fa76d6bc0da31488aed16bc (diff)
downloaddexon-sol-tools-7f595169c1bc02873d47a5b7411dfb7414c19041.tar
dexon-sol-tools-7f595169c1bc02873d47a5b7411dfb7414c19041.tar.gz
dexon-sol-tools-7f595169c1bc02873d47a5b7411dfb7414c19041.tar.bz2
dexon-sol-tools-7f595169c1bc02873d47a5b7411dfb7414c19041.tar.lz
dexon-sol-tools-7f595169c1bc02873d47a5b7411dfb7414c19041.tar.xz
dexon-sol-tools-7f595169c1bc02873d47a5b7411dfb7414c19041.tar.zst
dexon-sol-tools-7f595169c1bc02873d47a5b7411dfb7414c19041.zip
Put release name generation into postpublish_utils
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/scripts/postpublish.js3
-rw-r--r--packages/assert/scripts/postpublish.js2
-rw-r--r--packages/connect/scripts/postpublish.js2
-rw-r--r--packages/json-schemas/scripts/postpublish.js2
-rw-r--r--packages/tslint-config/scripts/postpublish.js2
5 files changed, 5 insertions, 6 deletions
diff --git a/packages/0x.js/scripts/postpublish.js b/packages/0x.js/scripts/postpublish.js
index 3756b8984..d2ae86bbd 100644
--- a/packages/0x.js/scripts/postpublish.js
+++ b/packages/0x.js/scripts/postpublish.js
@@ -10,10 +10,9 @@ let tag;
let version;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {
- console.log('POSTPUBLISH: Releasing...');
tag = result.tag;
version = result.version;
- const releaseName = subPackageName + ' v' + version;
+ const releaseName = postpublish_utils.getReleaseName(subPackageName, version);
const assets = [
__dirname + '/../_bundles/index.js',
__dirname + '/../_bundles/index.min.js',
diff --git a/packages/assert/scripts/postpublish.js b/packages/assert/scripts/postpublish.js
index 08458f038..7fa452b08 100644
--- a/packages/assert/scripts/postpublish.js
+++ b/packages/assert/scripts/postpublish.js
@@ -5,7 +5,7 @@ const subPackageName = packageJSON.name;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {
- const releaseName = subPackageName + ' v' + result.version;
+ const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version);
const assets = [];
return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
})
diff --git a/packages/connect/scripts/postpublish.js b/packages/connect/scripts/postpublish.js
index 08458f038..7fa452b08 100644
--- a/packages/connect/scripts/postpublish.js
+++ b/packages/connect/scripts/postpublish.js
@@ -5,7 +5,7 @@ const subPackageName = packageJSON.name;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {
- const releaseName = subPackageName + ' v' + result.version;
+ const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version);
const assets = [];
return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
})
diff --git a/packages/json-schemas/scripts/postpublish.js b/packages/json-schemas/scripts/postpublish.js
index 08458f038..7fa452b08 100644
--- a/packages/json-schemas/scripts/postpublish.js
+++ b/packages/json-schemas/scripts/postpublish.js
@@ -5,7 +5,7 @@ const subPackageName = packageJSON.name;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {
- const releaseName = subPackageName + ' v' + result.version;
+ const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version);
const assets = [];
return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
})
diff --git a/packages/tslint-config/scripts/postpublish.js b/packages/tslint-config/scripts/postpublish.js
index 08458f038..7fa452b08 100644
--- a/packages/tslint-config/scripts/postpublish.js
+++ b/packages/tslint-config/scripts/postpublish.js
@@ -5,7 +5,7 @@ const subPackageName = packageJSON.name;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {
- const releaseName = subPackageName + ' v' + result.version;
+ const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version);
const assets = [];
return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
})