Skip to content
Snippets Groups Projects
Commit 33687b2a authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

Added publish stuff

parent 0d647487
Branches
Tags
1 merge request!1Master
......@@ -11,6 +11,9 @@ include:
variables:
SONAR_PROJECT_KEY: config
SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8
NPM_USERNAME: git
NPM_PASSWORD: git
NPM_EMAIL: git@git.de
cache:
paths:
......@@ -42,6 +45,15 @@ test:
publish to local npm:
stage: publish
before_script:
- echo '//it-devops-01:4873/:_authToken="ZMh1NzlklUTNNvt573Imgw=="' > .npmrc
- apt-get install expect
- |
/usr/bin/expect <<EOD
spawn npm adduser --registry https://it-devops-01:4873
expect {
"Username:" {send "$NPM_USERNAME\r"; exp_continue}
"Password:" {send "$NPM_PASSWORD\r"; exp_continue}
"Email: (this IS public)" {send "$NPM_EMAIL\r"; exp_continue}
}
EOD
script:
- npm publish --registry https://it-devops-01:4873
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment