Skip to content

Commit f1c3de9

Browse files
authored
chore: update versioning script (#945)
Bump package ver in readme also
1 parent d14a6c5 commit f1c3de9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/create_version.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class _Path {
4646
static const version = '.version';
4747
static const changelog = 'CHANGELOG.md';
4848
static const pubspec = 'pubspec.yaml';
49+
static const readme = 'README.md';
4950
static const livekitVersion = 'lib/src/livekit.dart';
5051
static const iosPodspec = 'ios/livekit_client.podspec';
5152
static const macosPodspec = 'macos/livekit_client.podspec';
@@ -287,6 +288,13 @@ void updateVersionFiles(SemanticVersion version) {
287288
RegExp(r"s\.version\s*=\s*'[^']*'"),
288289
"s.version = '$version'",
289290
);
291+
292+
// Update README.md installation snippet
293+
replaceVersionInFile(
294+
_Path.readme,
295+
RegExp(r'^\s*livekit_client:\s+.*$', multiLine: true),
296+
' livekit_client: ^$version',
297+
);
290298
}
291299

292300
void cleanupChangesDirectory() {

0 commit comments

Comments
 (0)