Skip to content

Commit a85a535

Browse files
authored
fix: check correct token var, don’t catch errors so status code is correct
1 parent 04b5ec4 commit a85a535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

merge-release-run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +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')
18+
if (!process.env.NPM_AUTH_TOKEN) throw new Error('Merge-release requires NPM_AUTH_TOKEN')
1919
let latest
2020
try {
2121
latest = await get(pkg.name + '/latest')
@@ -53,4 +53,4 @@ const run = async () => {
5353
process.stdout.write(execSync(`npm publish --access=public`))
5454
process.stdout.write(execSync(`git checkout package.json`))
5555
}
56-
run().catch(console.error)
56+
run()

0 commit comments

Comments
 (0)