mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-22 11:52:03 +03:00
Fix Build on MacOS and Win
Fix build if GH_TOKEN or GITHUB_TOKEN is null on Mac OS and Windows
This commit is contained in:
parent
39b4cca772
commit
6fbb2a2274
@ -25,12 +25,12 @@ builder({
|
||||
identity: !process.env.CI || process.env.CSC_LINK ? undefined : null,
|
||||
},
|
||||
npmRebuild: process.env.ARCH !== 'arm64',
|
||||
publish: process.env.GH_TOKEN ? {
|
||||
publish: process.env.GH_TOKEN || process.env.GITHUB_TOKEN ? {
|
||||
provider: 'github',
|
||||
channel: `latest-${process.env.ARCH}`,
|
||||
} : undefined,
|
||||
},
|
||||
publish: isTag ? 'always' : 'onTagOrDraft',
|
||||
publish: ( process.env.GH_TOKEN || process.env.GITHUB_TOKEN ) ? ( isTag ? 'always' : 'onTagOrDraft' ) : 'never',
|
||||
}).catch(e => {
|
||||
console.error(e)
|
||||
process.exit(1)
|
||||
|
@ -15,10 +15,10 @@ builder({
|
||||
extraMetadata: {
|
||||
version: vars.version,
|
||||
},
|
||||
publish: process.env.GH_TOKEN ? {
|
||||
publish: process.env.GH_TOKEN || process.env.GITHUB_TOKEN ? {
|
||||
provider: 'github',
|
||||
channel: `latest-${process.arch}`,
|
||||
} : undefined,
|
||||
},
|
||||
publish: isTag ? 'always' : 'onTagOrDraft',
|
||||
publish: ( process.env.GH_TOKEN || process.env.GITHUB_TOKEN ) ? ( isTag ? 'always' : 'onTagOrDraft' ) : 'never',
|
||||
}).catch(() => process.exit(1))
|
||||
|
Loading…
Reference in New Issue
Block a user