Skip to content

Handle npm tokens with environment variables #1939

Handle npm tokens with environment variables

Handle npm tokens with environment variables #1939

Triggered via pull request April 21, 2026 23:22
Status Failure
Total duration 1m 48s
Artifacts

pr.yml

on: pull_request
build docs
20s
build docs
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

11 errors
build (ubuntu-latest, node 20, npm 11)
Process completed with exit code 1.
packagePublish › with real local registry › errors and does not retry on republish: packages/beachball/src/__functional__/packageManager/packagePublish.test.ts#L169
expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 31 - ObjectContaining { - "success": true, + Object { + "all": "npm warn Unknown env config \"version-commit-hooks\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-tag-prefix\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-message\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"argv\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-tag\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm error code ENEEDAUTH + npm error need auth This command requires you to be logged in to http://localhost:4873/ + npm error need auth You need to authorize this machine using `npm adduser` + npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-04-21T23_23_48_366Z-debug-0.log", + "command": "npm publish --registry http://localhost:4873 --tag testbeachballtag --loglevel warn", + "escapedCommand": "npm publish --registry \"http://localhost:4873\" --tag testbeachballtag --loglevel warn", + "exitCode": 1, + "failed": true, + "isCanceled": false, + "killed": false, + "shortMessage": "Command failed with exit code 1: npm publish --registry http://localhost:4873 --tag testbeachballtag --loglevel warn", + "signal": undefined, + "signalDescription": undefined, + "stderr": "npm warn Unknown env config \"version-commit-hooks\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-tag-prefix\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-message\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"argv\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-tag\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm error code ENEEDAUTH + npm error need auth This command requires you to be logged in to http://localhost:4873/ + npm error need auth You need to authorize this machine using `npm adduser` + npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-04-21T23_23_48_366Z-debug-0.log", + "stdout": "", + "success": false, + "timedOut": false, } at Object.<anonymous> (src/__functional__/packageManager/packagePublish.test.ts:169:29)
packagePublish › with real local registry › can publish with a token: packages/beachball/src/__functional__/packageManager/packagePublish.test.ts#L121
expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 31 - ObjectContaining { - "success": true, + Object { + "all": "npm warn Unknown env config \"version-commit-hooks\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-tag-prefix\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-message\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"argv\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-tag\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm error code ENEEDAUTH + npm error need auth This command requires you to be logged in to http://localhost:4873/ + npm error need auth You need to authorize this machine using `npm adduser` + npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-04-21T23_23_45_824Z-debug-0.log", + "command": "npm publish --registry http://localhost:4873 --tag testbeachballtag --loglevel warn", + "escapedCommand": "npm publish --registry \"http://localhost:4873\" --tag testbeachballtag --loglevel warn", + "exitCode": 1, + "failed": true, + "isCanceled": false, + "killed": false, + "shortMessage": "Command failed with exit code 1: npm publish --registry http://localhost:4873 --tag testbeachballtag --loglevel warn", + "signal": undefined, + "signalDescription": undefined, + "stderr": "npm warn Unknown env config \"version-commit-hooks\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-tag-prefix\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-message\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"argv\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm warn Unknown env config \"version-git-tag\". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. + npm error code ENEEDAUTH + npm error need auth This command requires you to be logged in to http://localhost:4873/ + npm error need auth You need to authorize this machine using `npm adduser` + npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-04-21T23_23_45_824Z-debug-0.log", + "stdout": "", + "success": false, + "timedOut": false, } at Object.<anonymous> (src/__functional__/packageManager/packagePublish.test.ts:121:29)
build (windows-latest, node 14, npm 8)
The strategy configuration was canceled because "build.ubuntu-latest_11_20" failed
build (windows-latest, node 14, npm 8)
The operation was canceled.
build (windows-latest, node 20, npm 11)
The strategy configuration was canceled because "build.ubuntu-latest_11_20" failed
build (windows-latest, node 20, npm 11)
The operation was canceled.
build (ubuntu-latest, node 14, npm 6)
The strategy configuration was canceled because "build.ubuntu-latest_11_20" failed
build (ubuntu-latest, node 14, npm 6)
The operation was canceled.
build (ubuntu-latest, node 14, npm 8)
The strategy configuration was canceled because "build.ubuntu-latest_11_20" failed
build (ubuntu-latest, node 14, npm 8)
The operation was canceled.