Skip to content

Commit 8e05fe7

Browse files
committed
Merge branch 'master' of /Users/andy/es2015-library-skeleton
2 parents 99fd912 + f3c7088 commit 8e05fe7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

solano.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,20 @@ environment:
99
'CI': 'true'
1010

1111
hooks:
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

1528
tests:

0 commit comments

Comments
 (0)