fix: check for npm token early
This commit is contained in:
parent
06e153a49b
commit
04b5ec4a33
|
@ -15,6 +15,7 @@ const event = JSON.parse(fs.readFileSync('/github/workflow/event.json').toString
|
|||
let pkg = require(path.join(process.cwd(), 'package.json'))
|
||||
|
||||
const run = async () => {
|
||||
if (!process.env.NPM_TOKEN) throw new Error('Merge-release requires NPM_TOKEN')
|
||||
let latest
|
||||
try {
|
||||
latest = await get(pkg.name + '/latest')
|
||||
|
|
Loading…
Reference in New Issue