first attempt to support lts

This commit is contained in:
Maxim Lobanov
2021-06-15 19:24:00 +00:00
committed by GitHub
parent 2bd3b2a3c2
commit 41a1acf1a4
2 changed files with 51 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
{
"regex": "node-\\d+\\.\\d+\\.\\d+-(\\w+)-(x\\d+)",
"groups": {
"arch": 2,
"platform": 1
},
"lts_rule_expression": "(Invoke-RestMethod 'https://raw.githubusercontent.com/nodejs/Release/main/schedule.json').PSObject.Properties | Where-Object { $_.Value.codename } | ForEach-Object { @{ Name = $_.Name.TrimStart('v'); Value = $_.Value.codename } }"
}