moved node version section in README to advanced usage

added link to README
* migrated contents of version-file-workflow.yml to versions.yml
* further refactored parseNodeVersionFile() & tests
* removed type annotations in catch ()
This commit is contained in:
La'Kaleigh Harris 2021-10-05 15:01:26 +00:00 committed by GitHub
parent e471f47826
commit b1ed0c36e7
8 changed files with 113 additions and 17531 deletions

View file

@ -80,11 +80,9 @@ export async function run() {
}
}
function isGhes(): boolean {
const ghUrl = new URL(
process.env['GITHUB_SERVER_URL'] || 'https://github.com'
);
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
}
}