1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-22 11:52:03 +03:00

Publish only if GH_TOKEN || GITHUB_TOKEN

This commit is contained in:
Jai A P 2022-08-30 11:50:32 +05:30 committed by Eugene
parent b5c2b6de5d
commit 16b338729f

View File

@ -16,12 +16,12 @@ builder({
extraMetadata: {
version: vars.version,
},
publish: {
provider: 'github',
channel: `latest-${process.arch}`,
},
},
publish: isTag ? 'always' : 'onTagOrDraft',
        publish: process.env.GH_TOKEN || process.env.GITHUB_TOKEN ? {
            provider: 'github',
            channel: `latest-${process.env.ARCH}`,
        } : undefined,
    },
     publish: ( process.env.GH_TOKEN || process.env.GITHUB_TOKEN ) ? ( isTag ? 'always' : 'onTagOrDraft' ) : 'never',
}).catch(e => {
console.error(e)
process.exit(1)