Skip to content

Commit 38e7add

Browse files
committed
chore: Use npm ci in ci.
If checking out opticss for the first time, bootstrap it with the --ci option so that it uses the lockfile and errors predictably.
1 parent 89f9b9d commit 38e7add

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/checkout-opticss.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ then
1313
git fetch origin
1414
git checkout $BRANCH
1515
git pull
16-
cd -
16+
lerna bootstrap --registry=https://registry.npmjs.org/
1717
else
1818
git clone -b $BRANCH --depth 1 git@github.com:css-blocks/opticss.git $OPTICSS_DIR
19+
cd $OPTICSS_DIR
20+
lerna bootstrap --ci --registry=https://registry.npmjs.org/
1921
fi
20-
cd $OPTICSS_DIR
21-
lerna bootstrap --registry=https://registry.npmjs.org/
2222
lerna run compile
2323
cd -

0 commit comments

Comments
 (0)