diff --git a/bamboo-specs/dnr-rulesets-auto-deploy.yaml b/bamboo-specs/dnr-rulesets-auto-deploy.yaml index e829b9ff7..9650eb749 100644 --- a/bamboo-specs/dnr-rulesets-auto-deploy.yaml +++ b/bamboo-specs/dnr-rulesets-auto-deploy.yaml @@ -29,7 +29,21 @@ npmjs: artifacts: - name: dnr-rulesets.tgz - script: - - echo 'Task run successfully!' + interpreter: SHELL + scripts: + - |- + set -e + set -x + + # Fix mixed logs + exec 2>&1 + + ls -alt + + # Deploy to npm + export NPM_TOKEN=${bamboo.npmSecretToken} + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + npm publish dnr-rulesets.tgz --access public requirements: - adg-docker: 'true' - extension: 'true'