Skip to content

Commit 7cfee31

Browse files
committed
Use yarn for building instead of npm
1 parent de96a43 commit 7cfee31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/release

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ echo "Release: update working tree"
2828
git pull origin master
2929
git fetch origin --tags
3030

31-
echo "Release: npm install"
32-
npm install
31+
echo "Release: yarn install"
32+
yarn install
3333

3434
currentVersion=$(json version < package.json)
3535

@@ -54,7 +54,7 @@ read -re newVersion
5454
VERSION=$newVersion babel-node ./scripts/bump-package-version.js
5555

5656
# build new version
57-
NODE_ENV=production VERSION=$newVersion npm run build
57+
NODE_ENV=production VERSION=$newVersion yarn run build
5858

5959
# update changelog
6060
echo
@@ -65,7 +65,7 @@ conventional-changelog --preset angular --infile CHANGELOG.md --same-file -r 0
6565
# regenerate readme TOC
6666
echo
6767
echo "Release: generate TOCS"
68-
npm run doctoc
68+
yarn run doctoc
6969

7070
# git add and tag
7171
commitMessage="v$newVersion\n\n$changelog"

0 commit comments

Comments
 (0)