File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,20 @@ environment:
99 ' CI ' : ' true'
1010
1111hooks :
12- pre_setup : yarn install --ignore-engines --check-files --frozen-lockfile
12+ pre_setup : |
13+ set -o errexit -o pipefail # Exit on error
14+ # Install yarn if it isn't already present
15+ if [ ! -d $HOME/.yarn ]; then
16+ wget https://yarnpkg.com/install.sh -O $TMPDIR/yarn-install.sh
17+ chmod +x $TMPDIR/yarn-install.sh
18+ $TMPDIR/yarn-install.sh --version 1.5.1
19+ fi
20+ mkdir -p $HOME/bin # Automatically in $PATH on workers
21+ ln -fs $HOME/.yarn/bin/yarn $HOME/bin/yarn
22+ yarn config set registry "https://registry.npmjs.org/"
23+ echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> $HOME/.npmrc
24+ echo "registry=https://registry.npmjs.org/" >> $HOME/.npmrc
25+ yarn install --ignore-engines --check-files --frozen-lockfile
1326 post_build : npm run codecov && npm run semantic-release
1427
1528tests :
You can’t perform that action at this time.
0 commit comments