File tree 2 files changed +15
-133
lines changed
2 files changed +15
-133
lines changed Original file line number Diff line number Diff line change 208
208
0.65.2
209
209
0.65.1
210
210
0.65.0
211
- 0.65.0-rc.4
212
- 0.65.0-rc.3
213
- 0.65.0-rc.2
214
- 0.65.0-rc.1
215
- 0.65.0-rc.0
216
- 0.64.4
217
- 0.64.3
218
- 0.64.2
219
- 0.64.1
220
- 0.64.0
221
- 0.64.0-rc.3
222
- 0.64.0-rc.2
223
- 0.64.0-rc.1
224
- 0.64.0-rc.0
225
- 0.63.5
226
- 0.63.4
227
- 0.63.3
228
- 0.63.2
229
- 0.63.1
230
- 0.63.0
231
- 0.63.0-rc.1
232
- 0.63.0-rc.0
233
- 0.62.3
234
- 0.62.2
235
- 0.62.1
236
- 0.62.0
237
- 0.62.0-rc.5
238
- 0.62.0-rc.4
239
- 0.62.0-rc.3
240
- 0.62.0-rc.2
241
- 0.62.0-rc.1
242
- 0.62.0-rc.0
243
- 0.61.5
244
- 0.61.4
245
- 0.61.3
246
- 0.61.2
247
- 0.61.1
248
- 0.61.0
249
- 0.61.0-rc.3
250
- 0.61.0-rc.2
251
- 0.61.0-rc.0
252
- 0.60.6
253
- 0.60.5
254
- 0.60.4
255
- 0.60.3
256
- 0.60.2
257
- 0.60.1
258
- 0.60.0
259
- 0.60.0-rc.3
260
- 0.60.0-rc.2
261
- 0.60.0-rc.1
262
- 0.60.0-rc.0
263
- 0.59.10
264
- 0.59.9
265
- 0.59.8
266
- 0.59.7
267
- 0.59.5
268
- 0.59.4
269
- 0.59.3
270
- 0.59.2
271
- 0.59.1
272
- 0.59.0
273
- 0.59.0-rc.3
274
- 0.59.0-rc.2
275
- 0.59.0-rc.1
276
- 0.59.0-rc.0
277
- 0.58.6
278
- 0.58.5
279
- 0.58.4
280
- 0.58.3
281
- 0.58.2
282
- 0.58.1
283
- 0.58.0
284
- 0.58.0-rc.3
285
- 0.58.0-rc.2
286
- 0.58.0-rc.1
287
- 0.58.0-rc.0
288
- 0.57.8
289
- 0.57.7
290
- 0.57.6
291
- 0.57.5
292
- 0.57.4
293
- 0.57.3
294
- 0.57.2
295
- 0.57.1
296
- 0.57.0
297
- 0.57.0-rc.4
298
- 0.57.0-rc.3
299
- 0.57.0-rc.2
300
- 0.57.0-rc.1
301
- 0.57.0-rc.0
302
- 0.56.1
303
- 0.56.0
304
- 0.56.0-rc.5
305
- 0.56.0-rc.4
306
- 0.56.0-rc.3
307
- 0.56.0-rc.2
308
- 0.56.0-rc.1
309
- 0.56.0-rc
310
- 0.55.4
311
- 0.55.3
312
- 0.55.2
313
- 0.55.1
314
- 0.55.0
315
- 0.55.0-rc.2
316
- 0.55.0-rc.1
317
- 0.55.0-rc.0
318
- 0.54.4
319
- 0.54.3
320
- 0.54.2
321
- 0.54.1
322
- 0.54.0
323
- 0.54.0-rc.4
324
- 0.54.0-rc.3
325
- 0.54.0-rc.2
326
- 0.54.0-rc.0
327
- 0.53.3
328
- 0.53.2
329
- 0.53.0
330
- 0.53.0-rc.0
331
- 0.52.3
332
- 0.52.2
333
- 0.52.1
334
- 0.52.0
335
- 0.52.0-rc.0
336
- 0.51.0
337
- 0.51.0-rc.3
338
- 0.51.0-rc.2
339
- 0.50.4
340
- 0.50.3
341
- 0.50.2
342
- 0.50.1
343
- 0.50.0
Original file line number Diff line number Diff line change @@ -29,6 +29,20 @@ function pruneDiffFiles() {
29
29
} )
30
30
}
31
31
32
+ function pruneRELEASESFile ( ) {
33
+ const releasesContent = fs . readFileSync ( "RELEASES" , "utf8" )
34
+ const releases = releasesContent . split ( "\n" ) . filter ( Boolean ) // Remove empty lines
35
+
36
+ const keptReleases = releases . filter ( version =>
37
+ ! semver . lt ( version , MINIMUM_STORED_VERSION )
38
+ )
39
+
40
+ fs . writeFileSync ( "RELEASES" , keptReleases . join ( "\n" ) + "\n" )
41
+
42
+ const removedCount = releases . length - keptReleases . length
43
+ console . log ( `Removed ${ removedCount } old releases from RELEASES file` )
44
+ }
45
+
32
46
const exists = fs . existsSync ( DIFFS_DIR )
33
47
if ( ! exists ) {
34
48
console . log ( "Diffs worktree does not exist." )
@@ -37,3 +51,4 @@ if (!exists) {
37
51
}
38
52
39
53
pruneDiffFiles ( )
54
+ pruneRELEASESFile ( )
You can’t perform that action at this time.
0 commit comments