react-rough-notation
react-rough-notation copied to clipboard
Add GitHub Actions workflow for NPM package publishing and update test cmd
I have created a GitHub Action to publish the package to npm, but there are two things for you to do.
- 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
- 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.
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.