Skip to content

Commit 4649638

Browse files
committed
review feedback
1 parent f13bc6e commit 4649638

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
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>
13+
<playwright.version>1.49.0</playwright.version>
1414
</properties>
1515
<dependencies>
1616
<dependency>
1717
<groupId>com.microsoft.playwright</groupId>
1818
<artifactId>playwright</artifactId>
19-
<version>${playwright-version}</version>
19+
<version>${playwright.version}</version>
2020
</dependency>
2121
</dependencies>
2222
<build>

scripts/set_maven_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ POM_FILES=(
2121
)
2222

2323
node -e "$(cat <<EOF
24-
const parts = process.argv[1].split('.').map(part => parseInt(part, 10));
24+
const parts = process.argv[1].split('-')[0].split('.').map(part => parseInt(part, 10));
2525
parts[1]--;
2626
const previousMajorVersion = parts.join('.');
2727
fs.writeFileSync('examples/pom.xml', fs.readFileSync('examples/pom.xml', 'utf8')
28-
.replace(/<playwright-version>.*<\/playwright-version>/, '<playwright-version>' + previousMajorVersion + '</playwright-version>')
28+
.replace(/<playwright\.version>.*<\/playwright\.version>/, '<playwright\.version>' + previousMajorVersion + '</playwright\.version>')
2929
);
3030
EOF
3131
)" $VERSION

0 commit comments

Comments
 (0)