File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,38 @@ steps:
2727
2828- ** required** ` NPM_TOKEN ` - token of npm account
2929
30- for accessing the NPM_TOKEN please see https://docs.npmjs.com/private-modules/ci-server-config#getting-an-authentication-token
30+ ## How to use
31+
32+ - Add as a dependency to your project ` npm install --save-dev release-to-npm `
33+
34+ - Login into your project's NPM registry
35+
36+ ```
37+ npm login --registry <registry url>
38+ npm login --registry http://registry.npmjs.org
39+ ```
40+
41+ - Copy the token
42+
43+ see how to extracting the NPM_TOKEN https://docs.npmjs.com/private-modules/ci-server-config#getting-an-authentication-token
44+
45+ - Set the token as environment variable
46+
47+ Go to your project settings and add a new variable ` NPM_TOKEN ` with the value you
48+ have just copied
49+
50+ - Add script command (optional)
51+
52+ Create a script command to run the release-to-npm, in your ` package.json `
53+
54+ ``` json
55+ {
56+ "scripts" : {
57+ "release-to-npm" : " release-to-npm"
58+ }
59+ }
60+ ```
61+
62+
3163
3264
You can’t perform that action at this time.
0 commit comments