Skip to content

Add GitHub Actions workflow for NPM package publishing and update test cmd #34

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Jaival
Copy link

@Jaival Jaival commented Dec 8, 2024

I have created a GitHub Action to publish the package to npm, but there are two things for you to do.

  1. Create a token on npm. Follow these steps:
  • Go to the access token on npm > Generate a new granular access token.
  • Fill all the necessary information in the fields.
  • In the "Package and scopes" section, select read and write permissions and select "only select packages and scopes" and select this package. No need to change the organization section. and then "generate token".
  • Save the token at a secure location
  1. Add that token as a repository variable for this repo.
  • Go to repository settings > Actions > New Repository secrets and add the token with the name "NPM_TOKEN".
  • Then merge this PR. That should do it. It should publish the package to npm.

If there are any issues or further questions, please let me know.

@Jaival Jaival changed the title Add GitHub Actions workflow for NPM package publishing and update test… Add GitHub Actions workflow for NPM package publishing and update test cmd Dec 8, 2024
@Jaival
Copy link
Author

Jaival commented Dec 8, 2024

This error was shown while running the CodeQL Action. so I updated it to the supported version.
Error: This version of the CodeQL Action was deprecated on January 18th, 2023, and is no longer updated or supported. For better performance, improved security, and new features, upgrade to v2.

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

Successfully merging this pull request may close these issues.

1 participant