Skip to content

Commit

Permalink
chore: use only stable versions for .NET latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jul 10, 2023
1 parent 7964f32 commit 70f13b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ async function getVersionForLanguageBinding(lang) {
case 'csharp':
const nugetResponse = await fetch('https://api.nuget.org/v3-flatcontainer/microsoft.playwright/index.json');
const nugetData = await nugetResponse.json();
return nugetData.versions.pop();
const stableVersions = nugetData.versions.filter(version => !version.includes('-'));
return stableVersions.pop();

default:
throw new Error(`Unknown language binding ${lang}`);
Expand Down

0 comments on commit 70f13b8

Please sign in to comment.