From fdb65ab8b1fee32b769d2faf40cc0d19e32bb2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Thu, 7 Feb 2019 22:15:45 +0100 Subject: [PATCH] Update publishing command (#9466) [skip ci] This reflects how I have been releasing the last versions (https://github.com/babel/notes/issues/78#issuecomment-449519007). In the future, we'll only need to run `make new-version && git push --tags` and it will run `make publish` from CI/Actions. Co-authored-by: Henry Zhu --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d57bf7590d..67adb8378d 100644 --- a/Makefile +++ b/Makefile @@ -130,8 +130,12 @@ prepublish: make prepublish-build make test +new-version: + ./node_modules/.bin/lerna version --force-publish="@babel/runtime,@babel/runtime-corejs2,@babel/standalone,@babel/preset-env-standalone" + +# NOTE: Run make new-version first publish: prepublish - ./node_modules/.bin/lerna publish --force-publish="@babel/runtime,@babel/runtime-corejs2,@babel/standalone,@babel/preset-env-standalone" --require-scripts + ./node_modules/.bin/lerna publish from-git --require-scripts make clean bootstrap: clean-all