npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Github action for NPM publish

I am using Github actions in an attempt to publish to NPM with every push. I am getting the following error.

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

The NPM docs of the adduser command say: “The username, password, and email are read in from prompts.” How do I do this from a Github action?

My code is :

workflow "New workflow" {
  on = "push"
  resolves = ["NPM Publish"]

action "GitHub Action for npm" {
  uses = "actions/npm@e7aaefed7c9f2e83d493ff810f17fa5ccd7ed437"
  runs = "npm adduser"
  secrets = ["NPM_AUTH_TOKEN"]

action "NPM Publish" {
  uses = "actions/npm@e7aaefed7c9f2e83d493ff810f17fa5ccd7ed437"
  needs = ["GitHub Action for npm"]
  runs = "npm publish"
  secrets = ["NPM_AUTH_TOKEN"]

I have no idea what this massive error log means

Already have image (with digest):
Already have image (with digest):
+ tar xvz --strip=1 -C /14f4abd680909758347d536f0372ee4e881e24d893b96349f722f5e986da56b4
+ curl --fail --silent --globoff --show-error --location
4de82e979e9f1fc924c8f16383a1074955f8229f47a9d860e98d5338153079b6: Pulling from gct-12-8e9ezek6vz5791jn3c40vx9/484654f7adf6911ca799c01d40b80af4456b46c3418f33934c643ccc7f245f38/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1
177e7ef0df69: Already exists
604501ee7a0d: Pulling fs layer
59cdde45f964: Pulling fs layer
c7241f29026b: Pulling fs layer
279e3cec621f: Pulling fs layer
a3b9b8b83f9d: Pulling fs layer
a3b9b8b83f9d: Waiting
279e3cec621f: Waiting
604501ee7a0d: Verifying Checksum
604501ee7a0d: Download complete
279e3cec621f: Verifying Checksum
279e3cec621f: Download complete
a3b9b8b83f9d: Verifying Checksum
a3b9b8b83f9d: Download complete
604501ee7a0d: Pull complete
c7241f29026b: Verifying Checksum
c7241f29026b: Download complete
59cdde45f964: Verifying Checksum
59cdde45f964: Download complete
59cdde45f964: Pull complete
c7241f29026b: Pull complete
279e3cec621f: Pull complete
a3b9b8b83f9d: Pull complete
Digest: sha256:8ebf56fb90405d3537fb62d3ddd3ff664fa20bfd3aa1dfb39580bcde326b9c8e
Status: Downloaded newer image for
Already have image (with digest):
Sending build context to Docker daemon   76.8kB
Step 1/13 : FROM node:10-slim
10-slim: Pulling from library/node
177e7ef0df69: Already exists
604501ee7a0d: Already exists
59cdde45f964: Already exists
c7241f29026b: Already exists
Digest: sha256:8c5eee8742ec2f8efb10f7a64f5271ed0389957dc11ac9f69b96a5073ed502e0
Status: Image is up to date for node:10-slim
 ---> 066230d47ffd
Step 2/13 : LABEL version="1.0.0"
 ---> Using cache
 ---> 0ff42d6f1f1d
Step 3/13 : LABEL repository=""
 ---> Using cache
 ---> 9db56e06392a
Step 4/13 : LABEL homepage=""
 ---> Using cache
 ---> f15bcba5b323
Step 5/13 : LABEL maintainer="GitHub Actions <>"
 ---> Using cache
 ---> 258955440596
Step 6/13 : LABEL"GitHub Action for npm"
 ---> Using cache
 ---> c52562817283
Step 7/13 : LABEL com.github.actions.description="Wraps the npm CLI to enable common npm commands."
 ---> Using cache
 ---> 658347325080
Step 8/13 : LABEL com.github.actions.icon="package"
 ---> Using cache
 ---> ce46183f93bf
Step 9/13 : LABEL com.github.actions.color="red"
 ---> Using cache
 ---> 394ee8359a6b
Step 10/13 : COPY LICENSE /
 ---> Using cache
 ---> 7041a35216e0
Step 11/13 : COPY "" "/"
 ---> Using cache
 ---> e427fa87e1ec
Step 12/13 : ENTRYPOINT ["/"]
 ---> Using cache
 ---> a4c0e4add47a
Step 13/13 : CMD ["help"]
 ---> Using cache
 ---> b33dabd82588
Successfully built b33dabd82588
Successfully tagged
Pulling image:
latest: Pulling from github-actions-images/action-runner
cd784148e348: Already exists
2902d3c33d2f: Pulling fs layer
9a2d739044aa: Pulling fs layer
7f7b2f0ad58c: Pulling fs layer
2902d3c33d2f: Verifying Checksum
2902d3c33d2f: Download complete
9a2d739044aa: Verifying Checksum
9a2d739044aa: Download complete
7f7b2f0ad58c: Verifying Checksum
7f7b2f0ad58c: Download complete
2902d3c33d2f: Pull complete
9a2d739044aa: Pull complete
7f7b2f0ad58c: Pull complete
Digest: sha256:a9bd553a5163e8e3a9ada0e7c5a7978d532d8246cc549bc7969e15938ec0ddbf
Status: Downloaded newer image for
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <>

npm ERR! A complete log of this run can be found in:
npm ERR!     /github/home/.npm/_logs/2019-01-10T16_01_24_980Z-debug.log

### FAILED GitHub Action for npm 16:01:27Z (16.201s)