File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ module.exports = {
4343 name : '@electron-forge/publisher-github' ,
4444 config : {
4545 repository : {
46- owner : 'block' ,
47- name : 'goose' ,
46+ owner : process . env . GITHUB_OWNER || 'block' ,
47+ name : process . env . GITHUB_REPO || 'goose' ,
4848 } ,
4949 prerelease : false ,
5050 draft : true ,
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ interface UpdateCheckResult {
2727}
2828
2929export class GitHubUpdater {
30- private readonly owner = 'block' ;
31- private readonly repo = 'goose' ;
30+ private readonly owner = process . env . GITHUB_OWNER || 'block' ;
31+ private readonly repo = process . env . GITHUB_REPO || 'goose' ;
3232 private readonly apiUrl = `https://api.github.com/repos/${ this . owner } /${ this . repo } /releases/latest` ;
3333
3434 async checkForUpdates ( ) : Promise < UpdateCheckResult > {
Original file line number Diff line number Diff line change 11import { defineConfig } from 'vite' ;
22
33// https://vitejs.dev/config
4- export default defineConfig ( { } ) ;
4+ export default defineConfig ( {
5+ define : {
6+ 'process.env.GITHUB_OWNER' : JSON . stringify ( process . env . GITHUB_OWNER || 'block' ) ,
7+ 'process.env.GITHUB_REPO' : JSON . stringify ( process . env . GITHUB_REPO || 'goose' ) ,
8+ } ,
9+ } ) ;
You can’t perform that action at this time.
0 commit comments