[AAE-11496] Publish npm package using https (#2930)

This commit is contained in:
Bartosz Sekuła 2023-01-26 14:31:40 +01:00 committed by GitHub
parent a8268c680a
commit 4753142b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,11 +70,11 @@ do
echo "npm deprecate @alfresco/$PROJECT@$PREVIOUS_LIBRARY_VERSION 'Upgrade to @latest or $NEW_LIBRARY_VERSION'"
else
echo -e "Publish $PROJECT\n"
echo -e "======== Publishing project: $PROJECT ========\n"
echo -e "npm publish --tag $TAG_NPM\n"
echo 'strict-ssl=false' >> .npmrc
echo 'registry=http://${NPM_REGISTRY_ADDRESS}' >> .npmrc
echo 'strict-ssl=true' >> .npmrc
echo 'registry=https://${NPM_REGISTRY_ADDRESS}' >> .npmrc
echo '//${NPM_REGISTRY_ADDRESS}/:_authToken="${NPM_REGISTRY_TOKEN}"' >> .npmrc
npm publish --tag $TAG_NPM