Skip to content

Commit

Permalink
Guard against yarn-issue-1882 (#12188)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Oct 15, 2020
1 parent 9018716 commit 19dc038
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .yarn/releases/yarn-2.3.1.cjs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -214,6 +214,7 @@ prepublish-build: clean-lib clean-runtime-helpers
$(MAKE) prepublish-build-standalone clone-license

prepublish:
$(MAKE) check-yarn-bug-1882
$(MAKE) bootstrap-only
$(MAKE) prepublish-build
IS_PUBLISH=true $(MAKE) test
Expand All @@ -227,6 +228,13 @@ publish: prepublish
$(YARN) release-tool publish
$(MAKE) clean

check-yarn-bug-1882:
ifneq ("$(shell grep 3155328e5 .yarn/releases/yarn-*.cjs -c)", "0")
echo "Your version of yarn is affected by https://github.com/yarnpkg/berry/issues/1882"
echo "Please run `sed -i -e "s/3155328e5/4567890e5/g" .yarn/releases/yarn-*.cjs`"
exit 1
endif

publish-ci: prepublish
ifneq ("$(NPM_TOKEN)", "")
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
Expand Down

0 comments on commit 19dc038

Please sign in to comment.