Skip to content

Commit

Permalink
Run prepublish build after versioning (#12028)
Browse files Browse the repository at this point in the history
* test: run prepublish-build after versioning in publish test

* chore: run yarn install when lerna version is invoked
  • Loading branch information
JLHwung committed Sep 3, 2020
1 parent b5481cc commit 2026a42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 2026a42

Please sign in to comment.