@aelesia/npm-template
Advanced tools
Comparing version 0.2.0-next.66 to 0.2.0
{ | ||
"name": "@aelesia/npm-template", | ||
"version": "0.2.0-next.66", | ||
"version": "0.2.0", | ||
"description": "Template for NPM packages", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -40,4 +40,23 @@ # Testing | ||
## CI | ||
# Automated CI | ||
https://stackoverflow.com/questions/54665511/how-do-i-publish-a-private-npm-package-with-gitlab-ci | ||
1) Get your API Token from NPM | ||
- Settings > Auth Token > Create New Token > Read & Publish | ||
- Copy the token | ||
2) Add this API as as secret to your GitHub repo | ||
- Settings > Secrets > New secret | ||
- Name: NPM_TOKEN | ||
- Value: <paste the token from step 1> | ||
## Publishing by pushing to branch | ||
**npm/next** | ||
- Pushing to npm/next branch will publish a new package with the 'next' tag | ||
- Version name will be x.x.x-next.<build-no> | ||
**master** | ||
- Pushing to master will publish a new package with the 'latest' tag | ||
- Version name will be x.x.x | ||
*x.x.x is obtained from package.json.version |
6198
62