-
npm version patch
-
npm version minor
-
npm version major
git push && git push --tags
npm login
npm publish
1). Add the following line to the: ~/.npmrc
file:
//npm.pkg.github.com/:_authToken={TOKEN}
where {TOKEN}
is your
personal GitHub access token
with publishing permission.
2). Run:
npm publish --registry=https://npm.pkg.github.com