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 Action to publish on each new release #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcdado
Copy link
Contributor

@mcdado mcdado commented Dec 29, 2021

If you create an Access Token on npm (I suggest Automation type if you use 2FA as you should) and add it to the Secrets sections of the repository Settings page, you can create a new release from Github and a new version will automatically be publish to npm. Use NPM_TOKEN as secret name, or you'd need to change the last line of publish-on-release.yml file.

Full guide here: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

Screenshot 2021-12-29 at 17 27 49

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