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

The registry parameter doesn't work #55

Closed
honzabilek4 opened this issue Jul 15, 2022 · 2 comments
Closed

The registry parameter doesn't work #55

honzabilek4 opened this issue Jul 15, 2022 · 2 comments

Comments

@honzabilek4
Copy link

When setting the registry parameter to a value. I expect that this value will be used during publication. Unfortunately, this doesn't happen, a default value is always used.
I've set it up to use "npm-private"
Screenshot 2022-07-15 at 7 22 46
But here you can see it uses different URL during publish.
Screenshot 2022-07-15 at 7 23 11

@razor-x
Copy link
Collaborator

razor-x commented Jan 2, 2023

@honzabilek4 It should be handled by these line:

lines.push(`registry=${registry.href}`);

await setNpmConfig(options);

It looks like the error you posted shows it is trying to publish to your private registry.

I can confirm it's working for me ok with this setup

      - name: Publish
        uses: JS-DevTools/npm-publish@v1
        with:
          access: restricted
          token: ${{ secrets.GITHUB_TOKEN }}
          registry: https://npm.pkg.github.com

@mcous
Copy link
Member

mcous commented Apr 7, 2023

Cannot reproduce

@mcous mcous closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants