1
0
Fork 0

Use yarn for building instead of npm

This commit is contained in:
Pixelastic 2018-11-07 15:00:28 +01:00
parent de96a43c2c
commit 7cfee31a98

View file

@ -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"