Skip to content

Commit f52e9bb

Browse files
committed
add github token env
1 parent ee12773 commit f52e9bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/fetchReleases.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ const fetchReleases = async (githubToken) => {
7575
});
7676
};
7777

78-
// TODO: Allow for Environment Variable input
78+
if (process.env.GITHUB_TOKEN) {
79+
console.log('Fetching releases from github.com');
80+
fetchReleases(process.env.GITHUB_TOKEN);
81+
return;
82+
}
7983

8084
const rl = readline.createInterface({
8185
input: process.stdin,

0 commit comments

Comments
 (0)