2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

build(1733): parse deploy preview env int (#1734)

This commit is contained in:
Jeff Sagal
2022-12-17 12:20:32 -08:00
committed by GitHub
parent 31a9a5b017
commit ffd544f101
@@ -31,11 +31,16 @@ async function getSponsors() {
* Deploy previews don't have access to secrets.
* Return early since we don't have a token.
*/
if (process.env['DEPLOY_PREVIEW']) {
if (
process.env['DEPLOY_PREVIEW'] &&
parseInt(process.env['DEPLOY_PREVIEW'])
) {
console.log('Skipping sponsors because this is a deploy preview.')
return []
}
console.log('Fetching sponsors...')
const query = `
{
user(login: "sagalbot") {