From a9ab652445baddb939b08e9e760caecf9b246083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Tue, 1 Sep 2020 15:28:33 -0400 Subject: [PATCH 1/2] test: run prepublish-build after versioning in publish test --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7ddec4e9eee0..9b28f23d1a62 100644 --- a/Makefile +++ b/Makefile @@ -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 From 6305cf45154d8bdfda1b1378cdb9b133da153a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Tue, 1 Sep 2020 15:46:26 -0400 Subject: [PATCH 2/2] chore: run yarn install when lerna version is invoked --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9f430e5d5d43..ff3f1b06ece9 100644 --- a/package.json +++ b/package.json @@ -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",