From c2f9c350dea682afcf25c8440110d870e23985e8 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Tue, 27 Sep 2016 11:42:17 -0500 Subject: [PATCH] chore(build): tick package version tick package version --- package.json | 2 +- scripts/gulp/tasks/release.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d3ec13c0a..bd97937246 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "ionic2", - "version": "2.0.0-rc.test", + "version": "2.0.0-rc.0", "description": "A powerful framework for building mobile and progressive web apps with JavaScript and Angular 2", "keywords": [ "ionic", diff --git a/scripts/gulp/tasks/release.ts b/scripts/gulp/tasks/release.ts index ff3e8b73ff..3c7e80d5f6 100644 --- a/scripts/gulp/tasks/release.ts +++ b/scripts/gulp/tasks/release.ts @@ -19,6 +19,21 @@ task('release', (done: (err: any) => void) => { runSequence('release.prepareReleasePackage', 'release.copyProdVersion', done); }); +task('release.publishRelease', (done: Function) => { + const npmCmd = spawn('npm', ['publish', DIST_BUILD_ROOT]); + npmCmd.stdout.on('data', function (data) { + console.log(data.toString()); + }); + + npmCmd.stderr.on('data', function (data) { + console.log('npm err: ' + data.toString()); + }); + + npmCmd.on('close', function() { + done(); + }); +}); + task('release.copyProdVersion', () => { const sourcePackageJSON = require(`${PROJECT_ROOT}/package.json`); const packageJsonToUpdate = require(`${DIST_BUILD_ROOT}/package.json`);