mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore(ci): fix publishing @next on travis
This commit is contained in:
parent
ed2de2c2cb
commit
497a74d8e2
@ -38,6 +38,11 @@ jobs:
|
||||
include:
|
||||
- node_js: '12'
|
||||
|
||||
after_success:
|
||||
before_deploy:
|
||||
- node utils/apply_next_version.js
|
||||
- ./utils/publish_all_packages.sh --tip-of-tree
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: utils/publish_all_packages.sh --tip-of-tree
|
||||
on:
|
||||
branch: master
|
||||
|
||||
@ -20,11 +20,6 @@ if [[ $# < 1 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $(git rev-parse --abbrev-ref HEAD) != "master" ]]; then
|
||||
echo "ERROR: Cannot publish from branch '$(git rev-parse --abbrev-ref HEAD)' - it has to be 'master'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v npm >/dev/null; then
|
||||
echo "ERROR: NPM is not found"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user