diff --git a/scripts/travis/release/release-npm.sh b/scripts/travis/release/release-npm.sh index d652eb1ae7..abd09a9091 100755 --- a/scripts/travis/release/release-npm.sh +++ b/scripts/travis/release/release-npm.sh @@ -18,15 +18,21 @@ then fi; cd $DIST/aca-shared -npx @alfresco/adf-cli npm-publish \ - --npmRegistry $NPM_REGISTRY_ADDRESS \ - --tokenRegistry $NPM_REGISTRY_TOKEN \ - --tag $TAG_NPM \ - --pathProject "$(pwd)" + +set -e +touch .npmrc +echo 'strict-ssl=false' >> .npmrc +echo 'registry=http://${NPM_REGISTRY_ADDRESS}' >> .npmrc +echo '//${NPM_REGISTRY_ADDRESS}/:_authToken="${NPM_REGISTRY_TOKEN}"' >> .npmrc + +npm publish cd $DIST/adf-office-services-ext -npx @alfresco/adf-cli npm-publish \ - --npmRegistry $NPM_REGISTRY_ADDRESS \ - --tokenRegistry $NPM_REGISTRY_TOKEN \ - --tag $TAG_NPM \ - --pathProject "$(pwd)" + +set -e +touch .npmrc +echo 'strict-ssl=false' >> .npmrc +echo 'registry=http://${NPM_REGISTRY_ADDRESS}' >> .npmrc +echo '//${NPM_REGISTRY_ADDRESS}/:_authToken="${NPM_REGISTRY_TOKEN}"' >> .npmrc + +npm publish