Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit d4d5f20

Browse files
committed
Check whether process is defined
1 parent ae06254 commit d4d5f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const check: CheckFunction = async function(options: CheckOptions): Promise<Chec
1414
throw new Error('options object must not be null or undefined!')
1515
}
1616

17-
if (options.token !== false) {
17+
if (options.token !== false && typeof process !== 'undefined') {
1818
options.token = options.token || process.env['GITHUB_TOKEN'] || undefined
1919
}
2020

0 commit comments

Comments
 (0)