GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"
See original GitHub issue- Version: 19.4.2 and 19.5.0
- Target: macOS and Win
[============================================>] 100.0% of 43.04 MB (21.52 MB/s)
Building NSIS installer
Packaging NSIS installer for arch x64
Packaging NSIS installer for arch ia32
Error: GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"
at new GitHubPublisher (C:\projects\closeio-electron\node_modules\electron-publish\src\gitHubPublisher.ts:52:15)
I am not publishing anything, why this is requesting the GH_TOKEN? I am running:
cross-env NODE_ENV='production' build -w --config=config/production/electron-builder.yml --x64 --ia32
directories:
buildResources: build/production
output: dist/production
appId: org.myapp.electron
mac:
category: public.app-category.productivity
artifactName: myapp-${version}-${env.NODE_ENV}-mac.${ext}
target:
- zip
files:
- app/**/*
- node_modules/**/*
- package.json
- "!env.json"
extraResources:
-
from: config/production/env.json
to: env.json
win:
target: "nsis"
nsis:
artifactName: myapp-${version}-${env.NODE_ENV}-win.${ext}
installerIcon: build/production/icon.ico
runAfterFinish: false
deleteAppDataOnUninstall: true
allowToChangeInstallationDirectory: true
oneClick: false
dmg: null
linux: null
$ cross-env NODE_ENV='dev' build -m --config=config/dev/electron-builder.yml
CI detected, so artifacts will be published if draft release exists
How to ignore “CI detected, so artifacts will be published if draft release exists” and not publish?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Electron builder - GitHub Personal Access Token is not set ...
Well, I found the solution, I set env key in .bash_profile and it worked. I don't know why setting GH_TOKEN in the main.js...
Read more >GitHub Personal Access Token is not set, neither ... - Reddit
GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN". I'm trying to develop this application, ...
Read more >The GITHUB_TOKEN in GitHub Actions: How it Works ...
The GITHUB_TOKEN is a special access token that you can use to authenticate ... or repository can set the default permissions to be...
Read more >github personal access token is not set ... - Code Grepper
github personal access token is not set, neither programmatically, nor using env "gh_token". Add Answer | View In TPC Matrix.
Read more >How to set Secrets (e.g. GITHUB_ACCESS_TOKEN) on Server?
... e.g. the Secret for your storage access token must be set: either within the ~/.prefect/config.toml or as an environment variable.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pujiaxun i referred this guide: http://blog.biicode.com/automatically-build-publish-via-travis-ci-github/index.html
@slightlytrue It says that you don’t add a category, it’s a different issue. Check the log message.