Skip to content

Commit 99e5352

Browse files
Update README.md
1 parent 41ebac5 commit 99e5352

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

stable/relese-to-NPM/README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Codefresh Helm Plugin
22

3-
Use Codefresh [Helm](https://helm.sh) plugin to deploy a Helm chart into specified (by context) Kubernetes cluster.
3+
The release-to-npm can be used to publish images to npm.
44

55
## Usage
66

@@ -14,22 +14,18 @@ steps:
1414

1515
...
1616

17-
release_to_env:
18-
image: codefresh/plugin-helm:2.7.2
19-
17+
deploy_to_npm:
18+
title: Publishing To Npm
19+
image: codefresh/release-to-npm
20+
commands:
21+
- NPM_TOKEN=${{NPM_TOKEN}} npm run ci-publish
2022
...
2123

2224
```
2325

2426
## Environment Variables
2527

26-
- **required** `CHART_NAME` - Helm chart name
27-
- **required** `RELEASE_NAME` - Helm release name
28-
- **required** `KUBE_CONTEXT` - Kubernetes context to use (cluster name from Codefresh-Kubernetes integration)
29-
- `NAMESPACE` - target Kubernetes namespace
30-
- `CHART_VERSION` - application chart version to install
31-
- `CHART_REPO_URL` - Helm chart repository URL
32-
- `DRY_RUN` - do a "dry run" installation (do not install anything, useful for Debug)
33-
- `DEBUG` - print verbose install output
34-
- `WAIT` - block step execution till installation completed and all Kubernetes resources are ready
35-
- `TIMEOUT` - wait timeout (5min by default)
28+
- **required** `NPM_TOKEN` - token of npm account
29+
for get the token please see https://docs.npmjs.com/private-modules/ci-server-config#getting-an-authentication-token
30+
31+

0 commit comments

Comments
 (0)