Skip to content

Commit c05919e

Browse files
authored
Merge pull request #17 from beatthat/fixes-read-version-for-non-npm-reg
fix: use env var NPM_REGISTRY_URL to determine cur version
2 parents 03ebdb0 + e89231b commit c05919e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge-release-run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { promisify } = require('util')
88

99
const getlog = promisify(git.log.bind(git))
1010

11-
const get = bent('json', 'https://registry.npmjs.org/')
11+
const get = bent('json', process.env.NPM_REGISTRY_URL || 'https://registry.npmjs.org/')
1212

1313
const event = JSON.parse(fs.readFileSync('/github/workflow/event.json').toString())
1414

0 commit comments

Comments
 (0)