From 06899a4829fa4ff892e0de6b36b32a8f5640e438 Mon Sep 17 00:00:00 2001 From: Whizark Date: Sun, 9 Apr 2017 16:04:19 +0900 Subject: [PATCH] chore: run gulp task before release script --- gulpfile.js | 2 +- package.json | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 3bcdd0d..ba3e239 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,7 @@ const extra = require('./composer.json').extra; */ function bumpTaskFactory(type) { return () => { - const packages = ['package.json']; + const packages = []; const plugin = (pkg.main) ? [path.normalize(pkg.main)] : []; const loader = (extra && extra['installer-loader']) ? [path.normalize(extra['installer-loader'])] : []; const plugins = plugin.concat(loader); diff --git a/package.json b/package.json index 78482e7..4a96c48 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,9 @@ "precommit" : "npm run --silent lint", "cz" : "git cz", "release:first": "standard-version --sign --first-release", - "release:patch": "standard-version --sign --release-as pathc", - "release:minor": "standard-version --sign --release-as minor", - "release:major": "standard-version --sign --release-as major", - "release" : "standard-version --sign", + "release:patch": "npm run --silent gulp bump:patch && git add -u && standard-version --sign --release-as patch --commit-all", + "release:minor": "npm run --silent gulp bump:minor && git add -u && standard-version --sign --release-as minor --commit-all", + "release:major": "npm run --silent gulp bump:major && git add -u && standard-version --sign --release-as major --commit-all", "gulp" : "gulp", "lint:md" : "remark .", "lint" : "npm-run-all --parallel --silent --continue-on-error lint:*",