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 Release errors

See original GitHub issue

Expected Behavior

Lerna should create a new GitHub release for me when publishing new packages.

Current Behavior

I get an error:

? Are you sure you want to publish these packages? Yes
lerna info git Pushing tags...
lerna info github Creating GitHub releases...
lerna ERR! HttpError: Not Found
lerna ERR!     at response.text.then.message (C:\Users\tivac\Documents\GitHub\modular-css\node_modules\@octokit\request\lib\request.js:55:27)
lerna ERR! HttpError: Not Found
lerna ERR!     at response.text.then.message (C:\Users\tivac\Documents\GitHub\modular-css\node_modules\@octokit\request\lib\request.js:55:27)
lerna ERR! lerna Not Found
`error.code` is deprecated, use `error.status`.
`error.code` is deprecated, use `error.status`.
npm ERR! code ELIFECYCLE
npm ERR! errno 404

Steps to Reproduce (for bugs)

  1. https://github.com/tivac/modular-css
  2. Create a ./.env file containing a GH_TOKEN=... value
  3. npm run release
lerna.json

{
  "version": "22.1.3",
  "command": {
    "publish": {
      "conventionalCommits": true,
      "message": "release: %s :tada: :rocket:"
    },
    "version": {
      "conventionalCommits": true,
      "githubRelease": true
    }
  },
  "packages": [
    "packages/*"
  ]
}

lerna-debug.log

114 error HttpError: Not Found
114 error     at response.text.then.message (C:\Users\tivac\Documents\GitHub\modular-css\node_modules\@octokit\request\lib\request.js:55:27)

Context

I’d like to automatically create GitHub releases when publishing with Lerna.

Your Environment

Executable Version
lerna --version 3.11.0
npm --version 6.5.0
node --version 10.14.2
OS Version
NAME VERSION
Windows 10 1703

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:34 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
milesjcommented, Feb 15, 2019

Are these private repositories? Did you give your token repo access?

screen shot 2019-02-14 at 20 54 06

It might be this: https://developer.github.com/v3/troubleshooting/#why-am-i-getting-a-404-error-on-a-repository-that-exists

0reactions
JamesHenrycommented, Nov 29, 2022

Hi Folks 👋

In light of its age, and in order to allow our small team to focus on what matters most to Lerna v6 users in late 2022, I’m going to close this one. If you have any requests that could enhance your usage of Lerna 6, then please do let us know by opening a new discussion (for a feature) or issue (for a bug report) with as much context as possible.

You can also check out our published roadmap for Lerna v7 here: https://github.com/lerna/lerna/discussions/3410

Many thanks 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

semantic-release/error: errors but with error code - GitHub
Errors of type SemanticReleaseError or an inherited type will be considered by semantic-release as an expected exception case (no release to be done, ......
Read more >
Issues · github-release/github-release
Commandline app to create and edit releases on Github (and upload artifacts) - Issues ... Random error: invalid response body. #114 opened on...
Read more >
Troubleshooting cloning errors - GitHub Docs
If you're having trouble cloning a repository, check these common errors. ... These errors usually indicate you have an old version of Git,...
Read more >
Issues · github-tools/github-release-notes
Node module to create a release or a changelog from a tag and uses issues or commits to creating the release notes. ......
Read more >
Managing releases in a repository - GitHub Docs
On GitHub.com, navigate to the main page of the repository. · To the right of the list of files, click Releases. · Click...
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