lerna: Github Release errors

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

About this issue

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

Most upvoted comments

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