Add the npm publish as part of adf-cli (#5002)

This commit is contained in:
Maurizio Vitale
2019-08-19 15:30:36 +01:00
committed by GitHub
parent e7c0852051
commit 6c969dda56
2 changed files with 118 additions and 0 deletions

View File

@@ -103,3 +103,24 @@ You can use the option --pointer to chose a different pointer from the default H
```bash
adf-cli update-commit-sha --pointer "HEAD~1" --pathProject "$(pwd)"
```
### npm publish
This command allows you to publish your lib on the npm.
```bash
adf-cli npm-publish --pathProject "$(pwd)"
```
You can use the option --npmRegistry "localhost:4873" to chose a different registry and --tokenRegistry "VALID_TOKEN" to pass the token.
```bash
adf-cli update-commit-sha --npmRegistry "localhost:4873" --tokenRegistry "VALID_TOKEN" --pathProject "$(pwd)"
```
In case you want to add a tag you can use the option --tag "alpha|beta|latest" .
```bash
adf-cli update-commit-sha --tag "beta" --pathProject "$(pwd)"
```