Run prepublish build after versioning (#12028)

* test: run prepublish-build after versioning in publish test

* chore: run yarn install when lerna version is invoked
This commit is contained in:
Huáng Jùnliàng 2020-09-03 08:25:44 -04:00 committed by GitHub
parent b5481cccbf
commit 2026a42497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -244,8 +244,8 @@ ifneq ("$(I_AM_USING_VERDACCIO)", "I_AM_SURE")
echo "You probably don't know what you are doing"
exit 1
endif
$(MAKE) prepublish-build
$(YARN) lerna version $(VERSION) --exclude-dependents --force-publish=$(FORCE_PUBLISH) --no-push --yes --tag-version-prefix="version-e2e-test-"
$(MAKE) prepublish-build
$(YARN) lerna publish from-git --registry http://localhost:4873 --yes --tag-version-prefix="version-e2e-test-"
$(MAKE) clean

View File

@ -8,7 +8,8 @@
"build": "make build",
"fix": "make fix",
"lint": "make lint",
"test": "make test"
"test": "make test",
"version": "yarn --immutable-cache && git add yarn.lock"
},
"devDependencies": {
"@babel/cli": "^7.10.4",