File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1010 <name >Playwright Client Examples</name >
1111 <properties >
1212 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
13+ <playwright .version>1.49.0</playwright .version>
1314 </properties >
1415 <dependencies >
1516 <dependency >
1617 <groupId >com.microsoft.playwright</groupId >
1718 <artifactId >playwright</artifactId >
18- <version >1.41.0 </version >
19+ <version >${playwright.version} </version >
1920 </dependency >
2021 </dependencies >
2122 <build >
Original file line number Diff line number Diff line change 2424fi ;
2525
2626./generate_api.sh
27- ./update_readme.sh
27+ ./update_readme.sh
28+
29+ node -e " $( cat << EOF
30+ let [majorVersion, minorVersion] = process.argv[1].split('-')[0].split('.').map(part => parseInt(part, 10));
31+ minorVersion[1]--;
32+ const previousMajorVersion = majorVersion + '.' + minorVersion + '.0';
33+ fs.writeFileSync('../examples/pom.xml', fs.readFileSync('../examples/pom.xml', 'utf8')
34+ .replace(/<playwright\.version>.*<\/playwright\.version>/, '<playwright\.version>' + previousMajorVersion + '</playwright\.version>')
35+ );
36+ EOF
37+ ) " $NEW_VERSION
You can’t perform that action at this time.
0 commit comments