Skip to content

Commit 04b5ec4

Browse files
authored
fix: check for npm token early
1 parent 06e153a commit 04b5ec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

merge-release-run.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const event = JSON.parse(fs.readFileSync('/github/workflow/event.json').toString
1515
let pkg = require(path.join(process.cwd(), 'package.json'))
1616

1717
const run = async () => {
18+
if (!process.env.NPM_TOKEN) throw new Error('Merge-release requires NPM_TOKEN')
1819
let latest
1920
try {
2021
latest = await get(pkg.name + '/latest')

0 commit comments

Comments
 (0)