From f186a757ad5cc0a660d3c8adff69f77ba7a9acc6 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Wed, 16 Apr 2025 13:04:53 -0400 Subject: [PATCH] fix(changelog): allow for non-https protocols --- src/releases.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/releases.mjs b/src/releases.mjs index 0f016a34..b80f1a15 100644 --- a/src/releases.mjs +++ b/src/releases.mjs @@ -38,9 +38,9 @@ const createNodeReleases = changelogPath => { const changelogUrl = new URL(changelogPath); const changelogStrategy = - changelogUrl.protocol === 'https:' - ? getChangelogFromNetwork(changelogUrl) - : getChangelogFromFileSystem(changelogUrl); + changelogUrl.protocol === 'file:' + ? getChangelogFromFileSystem(changelogUrl) + : getChangelogFromNetwork(changelogUrl); /** * Retrieves all Node.js major versions from the provided CHANGELOG.md file