@@ -13,6 +13,7 @@ import 'bom_analysis.dart';
13
13
14
14
const packagesDir = 'packages' ;
15
15
const versionsFile = 'VERSIONS.md' ;
16
+ const changelogFile = 'CHANGELOG.md' ;
16
17
const versionsJsonFile = 'scripts/versions.json' ;
17
18
const androidVersionFile =
18
19
'$packagesDir /firebase_core/firebase_core/android/gradle.properties' ;
@@ -108,7 +109,10 @@ void main(List<String> arguments) async {
108
109
await addLinkInChangelog (version, date);
109
110
110
111
// Commit the files and create an annotated tag and a commit
111
- Process .runSync ('git' , ['add' , versionsFile, versionsJsonFile]);
112
+ Process .runSync (
113
+ 'git' ,
114
+ ['add' , versionsFile, versionsJsonFile, changelogFile],
115
+ );
112
116
Process .runSync (
113
117
'git' ,
114
118
['tag' , '-a' , 'BoM-v$version ' , '-m' , 'BoM Version $version ' ],
@@ -226,11 +230,8 @@ Future<void> addLinkInChangelog(String version, String date) async {
226
230
.replaceAll ('-' , r'\-' )
227
231
.replaceAll ('.' , r'\.' );
228
232
229
- // Works only if runned using `melos run bom`
230
- String filePath = 'CHANGELOG.md' ;
231
-
232
233
String command =
233
- 'sed -i "" "s|$escapedOriginalLine |$escapedNewLine |" $filePath ' ;
234
+ 'sed -i "" "s|$escapedOriginalLine |$escapedNewLine |" $changelogFile ' ;
234
235
235
236
ProcessResult result = await Process .run ('bash' , ['-c' , command]);
236
237
0 commit comments