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

Add GitHub workflow for npm publish #13

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

Conversation

GrimLink
Copy link
Contributor

Closes #12

How to use

This requires a setup for github secrets with the name NPM_TOKEN.

This can be added on a organisation level from the settings and then go to Security -> Secrets and Variables -> Actions, from here you can add the secret with the name NPM_TOKEN

To create a token go to you NPM user settings and then tokens (for example: https://www.npmjs.com/settings/hyva-theme/tokens), from here you can create a token

When added, anytime you create a release, so release is more than just creating a tag, a github action will be run that will publish a new version.

For more information see the docs on this: https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages

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.

Add github workflow for auto publishing
1 participant