Skip to content

Commit

Permalink
build: don't add SNAPSHOT version to README
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Mar 27, 2023
1 parent 70028d6 commit f8a1b81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ async function main(): Promise<void> {

say(`\nUpdating snapshot version to ${nextVersion} ...`)
await updateVersionInGradleProperties(gradleFilePath, nextVersion)
await updateVersionInReadme(readmeFilePath, [
[/logback-android:\d+\.\d+\.\d+(?!-SNAPSHOT)/g, `logback-android:${nextVersion}`],
[/logback-android:\d+\.\d+\.\d+-SNAPSHOT/g, `logback-android:${nextSnapshotVer(nextVersion)}`],
])
// await updateVersionInReadme(readmeFilePath, [
// [/logback-android:\d+\.\d+\.\d+(?!-SNAPSHOT)/g, `logback-android:${nextVersion}`],
// [/logback-android:\d+\.\d+\.\d+-SNAPSHOT/g, `logback-android:${nextSnapshotVer(nextVersion)}`],
// ])

await commitChangedFiles({ cwd, message: `chore: update SNAPSHOT version` }, readmeFilePath, gradleFilePath)

Expand Down

0 comments on commit f8a1b81

Please sign in to comment.