Fixed logic for checking GitHub token

no issue 

- the check needs to be inverted to ensure we're being passed a token
This commit is contained in:
Daniel Lockyer 2021-03-04 00:29:56 +00:00 committed by GitHub
parent 1365eab4ae
commit a43c6b3cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,8 +111,8 @@ exports.release = async () => {
const githubToken = process.env.GST_TOKEN;
if (githubToken) {
console.log('Please configure your environment with a Github token located in GST_TOKEN');
if (!githubToken) {
console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
return;
}