Skip to content

Commit 1e18d5f

Browse files
authored
fix(changelog): allow for non-https protocols (#251)
1 parent d92c1e7 commit 1e18d5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/releases.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ const createNodeReleases = changelogPath => {
3838
const changelogUrl = new URL(changelogPath);
3939

4040
const changelogStrategy =
41-
changelogUrl.protocol === 'https:'
42-
? getChangelogFromNetwork(changelogUrl)
43-
: getChangelogFromFileSystem(changelogUrl);
41+
changelogUrl.protocol === 'file:'
42+
? getChangelogFromFileSystem(changelogUrl)
43+
: getChangelogFromNetwork(changelogUrl);
4444

4545
/**
4646
* Retrieves all Node.js major versions from the provided CHANGELOG.md file

0 commit comments

Comments
 (0)