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 <hi@henryzoo.com>
This commit is contained in:
Nicolò Ribaudo 2019-02-07 22:15:45 +01:00 committed by GitHub
parent 81123fb972
commit fdb65ab8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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