Skip to content

Commit d739ca8

Browse files
committed
fix(bun): drop .txt/.asc assets and strip .zip from release names
1 parent 012661c commit d739ca8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

bun/releases.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ module.exports = function () {
2121
return false;
2222
}
2323

24+
if (r.name.endsWith('.txt') || r.name.endsWith('.asc')) {
25+
return false;
26+
}
27+
2428
// drop the non-baseline asset when a baseline twin exists
2529
if (!r.name.includes('-baseline') && baselineNames.has(r.name)) {
2630
return false;
@@ -37,8 +41,8 @@ module.exports = function () {
3741
return true;
3842
})
3943
.map(function (r) {
40-
// bun-linux-x64-baseline.zip => bun-linux-x64.zip
41-
r.name = r.name.replace('-baseline', '');
44+
// bun-linux-x64-baseline.zip => bun-linux-x64
45+
r.name = r.name.replace('-baseline', '').replace(/\.zip$/, '');
4246
// bun-v0.5.1 => v0.5.1
4347
r.version = r.version.replace(/bun-/g, '');
4448
return r;

0 commit comments

Comments
 (0)