Skip to content

Commit

Permalink
fix: Avoid lerna:restore unless we are on Netlify (closes #1926, #1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik committed Aug 19, 2020
1 parent ca511ed commit cd73dd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .netlify/build-deploy-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node -v

# Install build deps and all monorepo package dependencies. Yarn Workspaces
# should also symlink all projects appropriately
yarn run lerna:restore
yarn install --no-ignore-optional --pure-lockfile

# Build && Move PWA Output
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"release": "yarn run lerna:version && yarn run lerna:publish",
"lerna:cache": "[ $NETLIFY_RESTORE = 1 ] && ./netlify-lerna-cache.sh || :",
"lerna:restore": "[ $NETLIFY_RESTORE = 1 ] && ./netlify-lerna-restore.sh || :",
"preinstall": "yarn lerna:restore",
"lerna:version": "npx lerna version prerelease --force-publish",
"lerna:publish": "lerna publish from-package --canary --dist-tag canary",
"link-list": "npm ls --depth=0 --link=true"
Expand Down

0 comments on commit cd73dd3

Please sign in to comment.