We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97b3495 commit 6e57af4Copy full SHA for 6e57af4
src/releases.mjs
@@ -35,11 +35,11 @@ const getChangelogFromFileSystem = async changelogUrl =>
35
* @param {string} changelogPath The given URL to the Node.js CHANGELOG.md file
36
*/
37
const createNodeReleases = changelogPath => {
38
- const changelogUrl = new URL(changelogPath);
+ const changelogUrl = URL.parse(changelogPath);
39
40
const changelogStrategy =
41
- changelogUrl.protocol === 'file:'
42
- ? getChangelogFromFileSystem(changelogUrl)
+ !changelogUrl || changelogUrl.protocol === 'file:'
+ ? getChangelogFromFileSystem(changelogUrl ?? changelogPath)
43
: getChangelogFromNetwork(changelogUrl);
44
45
/**
0 commit comments