question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
djalmaaraujocommented, Nov 26, 2017

@slightlytrue It says that you don’t add a category, it’s a different issue. Check the log message.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found