From 04b5ec4a331fca91ae6d0395400962991e4c8097 Mon Sep 17 00:00:00 2001 From: Mikeal Rogers Date: Thu, 5 Sep 2019 15:27:45 -0700 Subject: [PATCH] fix: check for npm token early --- merge-release-run.js | 1 + 1 file changed, 1 insertion(+) diff --git a/merge-release-run.js b/merge-release-run.js index 2ee4afb..1c80143 100644 --- a/merge-release-run.js +++ b/merge-release-run.js @@ -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')