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

Cannot deploy to npm registry with scoped package #874

Closed
2 of 5 tasks
samuelmanzanera opened this issue Oct 19, 2023 · 8 comments
Closed
2 of 5 tasks

Cannot deploy to npm registry with scoped package #874

samuelmanzanera opened this issue Oct 19, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@samuelmanzanera
Copy link

samuelmanzanera commented Oct 19, 2023

Description:
I can't deploy to NPM using Github Action when I used a scoped package.

Action version:
Specify the action version: v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

npm: 8.19.4
node v16.20.2

Repro steps:

Here the link of the Github Action workflow which failed:

https://github.com/archethic-foundation/libjs/actions/runs/6571556524/job/17850963499

Expected behavior:
I expect the publishing to work, as it's working locally without Github Action.

Actual behavior:
It seems the NPM package doesn't find the package with the scope.

@samuelmanzanera samuelmanzanera added bug Something isn't working needs triage labels Oct 19, 2023
@nikolai-laevskii
Copy link
Contributor

Thank you for reporting the issue! We will investigate it and come back to you with the details!

@dmitry-shibanov
Copy link
Contributor

Hello @samuelmanzanera. Sorry for the late response. Could you please try to use scope input.

@samuelmanzanera
Copy link
Author

Hello @samuelmanzanera. Sorry for the late response. Could you please try to use scope input.

Thanks for the reply and sorry for the delay.

I did try this strategy but it doesn's ended well.

You can see the result of the github action: https://github.com/archethic-foundation/libjs/actions/runs/8138807417/job/22240484834

And the commit about the changes in the .yaml: archethic-foundation/libjs@7c2484b

Is it only working with Github package registry ?

@samuelmanzanera
Copy link
Author

Hello @samuelmanzanera. Sorry for the late response. Could you please try to use scope input.

Thanks for the reply and sorry for the delay.

I did try this strategy but it doesn's ended well.

You can see the result of the github action: https://github.com/archethic-foundation/libjs/actions/runs/8138807417/job/22240484834

And the commit about the changes in the .yaml: archethic-foundation/libjs@7c2484b

Is it only working with Github package registry ?

Any idea or news about this subject ?

@gowridurgad gowridurgad self-assigned this Oct 3, 2024
@gowridurgad
Copy link

gowridurgad commented Oct 9, 2024

Hi @samuelmanzanera, we are able to successfully publish the scoped package to the npm registry using GitHub Actions. Please find the attached screenshot for your reference:
These are some troubleshooting steps to help resolve the issue.

  • Permission Issues: Might not have the necessary permissions to publish the package.
  • NPM Authentication: There might be an authentication issue with npm, such as incorrect tokens or expired credentials.
  • Scoped Package Configuration: The package scope might not be correctly defined in the package.json file.
  • Two-Factor Authentication (2FA): If your npm account has two-factor authentication (2FA) enabled, ensure you are using an automation token that bypasses the OTP requirement.
  • Package Access: Ensure that the package you are trying to publish is not already taken on the npm registry. Scoped packages should be unique within the scope.
  • Ensure Correct Scope: Verify the scope in your package.json matches your NPM user or organization:
    {
    "name": "@your-username/your-package",
    "version": "1.0.0"
    // other fields
    }

I hope this helps! Let us know if you need any further assistance.

Screenshot 2024-10-04 at 3 16 52 PM Screenshot 2024-10-04 at 4 14 11 PM

@gowridurgad
Copy link

Hi @samuelmanzanera, Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know.

1 similar comment
@gowridurgad
Copy link

Hi @samuelmanzanera, Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know.

@gowridurgad
Copy link

Hi @samuelmanzanera, Due to inactivity, I'm going to close this issue for now. Please feel free to reopen this issue or create a new one if necessary. Thank you.

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

No branches or pull requests

5 participants