From 58e8c9d834a2bb76c81760f10fca142ca9bc43b1 Mon Sep 17 00:00:00 2001 From: mroloux Date: Wed, 8 Jan 2025 10:00:22 +0100 Subject: [PATCH] Replace all version numbers in README.md when releasing --- README.md | 2 +- release.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d851bbf..bd6d30c 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Or if you prefer Swift Package Manager: ``` dependencies: [ - .package(url: "https://github.com/seatsio/seatsio-ios", from: "18.0.0") + .package(url: "https://github.com/seatsio/seatsio-ios", from: "18.1.0") ] ``` diff --git a/release.mjs b/release.mjs index 2e09186..37b1c26 100755 --- a/release.mjs +++ b/release.mjs @@ -57,7 +57,7 @@ async function replaceInFile(filename, latestVersion, nextVersion) { } return text }) - .then(text => text.replace(latestVersion, nextVersion)) + .then(text => text.replaceAll(latestVersion, nextVersion)) .then(text => fs.writeFileSync(filename, text)) .then(() => gitAdd(filename)) }