fix(pwsh): previews should be beta, not stable

This commit is contained in:
AJ ONeal
2023-10-18 02:21:09 -06:00
parent 589edd6940
commit 6b0c5263af
+5
View File
@@ -8,6 +8,11 @@ module.exports = function (request) {
return github(request, owner, repo).then(function (all) {
// remove checksums and .deb
all.releases = all.releases.filter(function (rel) {
let isPreview = rel.name.includes('-preview.');
if (isPreview) {
rel.channel = 'beta';
}
return !/(alpine)|(fxdependent)|(\.deb)|(\.pkg)|(\.rpm)$/i.test(rel.name);
});
return all;