release-it: Command seems to be timing out

Hello, we’re running into an issue where running release-it to create a new minor version in our private artifactory repository. Here’s the npm command that just runs release-it under the hood.

DEBUG=release-it:* npm run release -- minor --ci --verbose --disable-metrics

The only error I can find is that it seems to be timing out. But we never had this issue before. And the npm *-debug.log file doesn’t give any information other than the command failing. Can anyone help? Thanks!

Error:

npm notice PING https://artifacts.werally.in/artifactory/api/npm/npm
****
2020-04-03T17:23:03.365Z release-it:shell { command:
   'npm whoami --registry https://artifacts.werally.in/artifactory/api/npm/npm',
  options: {},
  code: 0,
  stdout: ****,
  stderr: '' }
0.3.1
2020-04-03T17:23:03.784Z release-it:shell { command:
   'npm show @rally/chatterbox-ui@latest version --registry https://artifacts.werally.in/artifactory/api/npm/npm',
  options: { write: false },
  code: 0,
  stdout: '0.3.1',
  stderr: '' }
ERROR Timed out after 10000ms.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @rally/chatterbox-ui@0.3.1 release: `release-it "minor" "--ci" "--verbose" "--disable-metrics"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @rally/chatterbox-ui@0.3.1 release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/.npm/_logs/2020-04-03T17_23_13_004Z-debug.log

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16

Most upvoted comments

@jonkwheeler Now it’s an option in v13.7.0

Use it like --npm.timeout=100 (in seconds)

Didn’t receive any other complaints about this and there have been no changes regarding this command, so I’m going to close this issue.

Skipping the checks means:

  • No npm ping to see if the registry is up
  • No npm whoami to see if the current user is authenticated
  • No npm show version to check the latest version in the registry (or if it’s a new package).

Additionally, I want to add a check whether the user is a package collaborator.