Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix puppeteer@next race condition (#3209)
When we merge commits to master, Travis kicks job to build a new commit and to publish new version of puppeteer@next. If two commits are landed in almost the same time, then travis starts two parallel jobs to build each commit. This race condition results in the incorrect puppeteer@next revision. This patch teaches apply_next_version.js to verify if current HEAD is matching upstream HEAD. If it doesn't, the predeploy hook fails which (hopefully) aborts deployment. Fixes #2925.
- Loading branch information