Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 when publishing the package to npm #38

Closed
jtpio opened this issue Jun 22, 2021 · 0 comments · Fixed by #39
Closed

404 when publishing the package to npm #38

jtpio opened this issue Jun 22, 2021 · 0 comments · Fixed by #39
Labels
bug Something isn't working

Comments

@jtpio
Copy link
Member

jtpio commented Jun 22, 2021

Description

While testing the Jupyter Releaser with a JupyterLab prebuilt extension (Python + npm), the Publish Release workflow (example run) would fail to upload the tarball to npm:

image

This package was already available on npm before.

Updating the workflow with the following diff (as mentioned in jupyterlab/extension-cookiecutter-ts#162 (comment)) helped going through:

 .github/actions/publish-release/action.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml
index 15b4844..517db7e 100644
--- a/.github/actions/publish-release/action.yml
+++ b/.github/actions/publish-release/action.yml
@@ -31,6 +31,8 @@ runs:
         export RH_DRY_RUN=${{ inputs.dry_run }}
         export release_url=${{ inputs.release_url }}
         export RH_NPM_COMMAND="npm publish --access public"
+        
+        echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
 
         # Install Jupyter Releaser from git
         pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v1

Reproduce

It should be possible to reproduce by:

  • creating a new extension from the cookiecutter
  • go through the jupyter releaser process

Expected behavior

The publish workflow should not fail publishing the package.

Context

For more context: jupyterlab/extension-cookiecutter-ts#162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant