octokit.authenticate() is deprecated. Use "auth" constructor option instead
See original GitHub issueHi, I get following errors during running semantic-release version 15.13.3 in Travis CI. Who can help me to fix it. Thanks in advance.
[2:12:43 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication
Error: octokit.authenticate() is deprecated. Use "auth" constructor option instead.
at authenticate (/home/travis/build/bndynet/bbootstrap/node_modules/@octokit/rest/plugins/authentication-deprecated/authenticate.js:4:16)
at module.exports (/home/travis/build/bndynet/bbootstrap/node_modules/@semantic-release/github/lib/get-client.js:59:10)
at module.exports (/home/travis/build/bndynet/bbootstrap/node_modules/@semantic-release/github/lib/verify.js:53:20)
at verifyConditions (/home/travis/build/bndynet/bbootstrap/node_modules/@semantic-release/github/index.js:24:9)
at validator (/home/travis/build/bndynet/bbootstrap/node_modules/semantic-release/lib/plugins/normalize.js:34:30)
at pReduce (/home/travis/build/bndynet/bbootstrap/node_modules/semantic-release/lib/plugins/pipeline.js:37:40)
at Promise.all.then.value (/home/travis/build/bndynet/bbootstrap/node_modules/p-reduce/index.js:16:10)
at process._tickCallback (internal/process/next_tick.js:68:7)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
how to fix octokit.authenticate() is deprecated - Stack Overflow
=> octokit.authenticate() is deprecated. Use "auth" constructor option instead. How can I fix it? my code module.
Read more >octokit/rest.js - GitHub Pages
Learn more about the optional @octokit/auth-oauth-app authentication strategy ... of methods for the new endpoints instead of using octokit.request() .
Read more >Top 5 @octokit/auth-token Code Examples | Snyk
[ deprecateAuthBasic, 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead ...
Read more >@octokit/oauth-app: Docs, Tutorials, Reviews | Openbase
Authenticated instance using the Octokit option passed to the constructor and @octokit/auth-oauth-user as authentication strategy. The octokit instance is ...
Read more >@octokit/core - npm
Usage. REST API example; GraphQL example. Options; Defaults; Authentication; Logging; Hooks; Plugins; Build your own Octokit with Plugins ...
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 Free
Top 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
Got it. Thanks for your help.
no need to install it directly, it comes with semantic-release. You’ll get new versions of
@semantic-release/github
in thev5.x.x
range automatically when installing from scratch.Try to run
npm update @semantic-release/github --depth 2
. If that does not help, deletenode_modules
andpackage-lock.json
and runnpm install