diff --git a/examples/pom.xml b/examples/pom.xml index 42aacfdd3..7dfb7dc6f 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -10,12 +10,13 @@ Playwright Client Examples UTF-8 + 1.49.0 com.microsoft.playwright playwright - 1.41.0 + ${playwright.version} diff --git a/scripts/roll_driver.sh b/scripts/roll_driver.sh index 2c47c3aff..243bdebd4 100755 --- a/scripts/roll_driver.sh +++ b/scripts/roll_driver.sh @@ -24,4 +24,14 @@ else fi; ./generate_api.sh -./update_readme.sh \ No newline at end of file +./update_readme.sh + +node -e "$(cat < parseInt(part, 10)); + minorVersion[1]--; + const previousMajorVersion = majorVersion + '.' + minorVersion + '.0'; + fs.writeFileSync('../examples/pom.xml', fs.readFileSync('../examples/pom.xml', 'utf8') + .replace(/.*<\/playwright\.version>/, '' + previousMajorVersion + '') + ); +EOF +)" $NEW_VERSION