From 7cfee31a98fd07d2e418f5e971af33d34c39fa9f Mon Sep 17 00:00:00 2001 From: Pixelastic Date: Wed, 7 Nov 2018 15:00:28 +0100 Subject: [PATCH] Use yarn for building instead of npm --- scripts/release | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/release b/scripts/release index 10f3a2b8..1701a929 100755 --- a/scripts/release +++ b/scripts/release @@ -28,8 +28,8 @@ echo "Release: update working tree" git pull origin master git fetch origin --tags -echo "Release: npm install" -npm install +echo "Release: yarn install" +yarn install currentVersion=$(json version < package.json) @@ -54,7 +54,7 @@ read -re newVersion VERSION=$newVersion babel-node ./scripts/bump-package-version.js # build new version -NODE_ENV=production VERSION=$newVersion npm run build +NODE_ENV=production VERSION=$newVersion yarn run build # update changelog echo @@ -65,7 +65,7 @@ conventional-changelog --preset angular --infile CHANGELOG.md --same-file -r 0 # regenerate readme TOC echo echo "Release: generate TOCS" -npm run doctoc +yarn run doctoc # git add and tag commitMessage="v$newVersion\n\n$changelog"