Skip to content
Snippets Groups Projects
Commit 02c02a56 authored by Ulf Seltmann's avatar Ulf Seltmann
Browse files

added test for npm-token

parent 6cd06900
No related merge requests found
Pipeline #777 failed with stages
in 3 minutes and 56 seconds
...@@ -92,9 +92,10 @@ npm_publish: ...@@ -92,9 +92,10 @@ npm_publish:
image: image:
name: node:10-alpine name: node:10-alpine
entrypoint: ["/bin/su", "node", "-c"] entrypoint: ["/bin/su", "node", "-c"]
script: script: |
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' test "${NPM_TOKEN}" == "" && echo "no npm token found" && false
- npm publish *.tgz --access public echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm publish *.tgz --access public
dependencies: dependencies:
- npm_pack - npm_pack
tags: tags:
...@@ -152,8 +153,8 @@ docker_publish_production: ...@@ -152,8 +153,8 @@ docker_publish_production:
export major_version=$(expr ${version} ':' '\([^.]\+\)') export major_version=$(expr ${version} ':' '\([^.]\+\)')
export minor_version=$(expr ${version} ':' '[^.]\+\.\([^.]\+\)') export minor_version=$(expr ${version} ':' '[^.]\+\.\([^.]\+\)')
deployer publish \ deployer publish \
--input image.tar.gz --input image.tar.gz \
--docker-config "$DOCKER_LIVE_AUTH_CONFIG" \ --docker-config "${DOCKER_LIVE_AUTH_CONFIG}" \
--name ${production_repo} \ --name ${production_repo} \
--tag latest \ --tag latest \
--tag ${version} \ --tag ${version} \
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment