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.

Can't use release for private repository

See original GitHub issue

Hi!

I have used release before and it works perfectly fine for public repositories. But for private repositories I always face the following.

❯ release patch
✔ Bumped version tag to 2.0.1
✔ Created release commit
✔ Tagged commit
✔ Pushed everything to remote
Error! Could not determine GitHub repository.

Here’s what the package.json looks like.

{
  "name": "joveo-tars",
  "version": "2.0.1",
  "description": "Setup for pristine Joveo Machines",
  "main": "main.js",
  "repository": "git@github.com:joveo/tars.git",
  "scripts": {
    "start": "node main.js",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "private": true,
  "author": "Praveen Puglia",
  "license": "MIT",
  "dependencies": {
    "chalk": "^1.1.3",
    "cli-spinner": "^0.2.6",
    "download": "^5.0.3",
    "inquirer": "^3.0.6",
    "jsonfile": "^2.4.0",
    "prettyjson": "^1.2.1",
    "shelljs": "^0.7.7"
  }
}

I am not sure why this error comes up - Error! Could not determine GitHub repository. Does release need some Auth token from github in order to work for private repos?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
whollacsekcommented, Nov 28, 2018

I randomly found out the solution just last week. In my case I migrated my repo into an org, which means the release app is missing permissions from the org. This link might work for you https://github.com/settings/connections/applications/08bd4d4e3725ce1c0465

https://github.com/zeit/release/issues/131

2reactions
praveenpugliacommented, Oct 26, 2018

@joaolavoier-luizalabs nope. It still doesn’t work for private repositories. I don’t know if release needs a special github token to work with private repositories. Haven’t got any help from any team member here too. So no idea.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github releases - are they private for private repo?
Yes, release assets on private repositories are private and require authentication to access or download. This is useful if you have an ...
Read more >
Private Repositories - Declarative GitOps CD for Kubernetes
Navigate to Settings/Repositories. connect repo overview · Click Connect Repo using HTTPS button and enter credentials. connect repo · Click Connect to test...
Read more >
FINALLY! Custom GitHub Actions in Internal Repos
GitHub has finally released a new feature that allows sharing custom GitHub Actions privately only within an organization.
Read more >
Sourcetree does not list private GitHub repos
Much to my surprise, I cannot see my private repositories. After some. ... (fill in a valid Access Token) instead shows all public/private...
Read more >
Xcode 13.3 supports SPM binary dependency in private ...
First, you cannot use the browser download URL as an HTTP request results in ... binary assets from release in a private GitHub...
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