Fixed plugin.sh
ci/woodpecker/push/wasm-o-x-rust Pipeline was successful Details
ci/woodpecker/push/tools-wasm-pack-plugin Pipeline failed Details

This commit is contained in:
Gleb Koval 2022-08-06 20:36:36 +00:00
parent 560039fa3c
commit 30473554e2
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ if [[ "${PLUGIN_ACTIONS}" =~ '(^|,)publish(,|$)' ]]; then
if [ "${PLUGIN_SCOPE:-}" = "" ]; then if [ "${PLUGIN_SCOPE:-}" = "" ]; then
npm config set registry ${REGISTRY} npm config set registry ${REGISTRY}
else else
npm config set ${PLUGIN_SCOPE}:registry ${REGISTRY} npm config set @${PLUGIN_SCOPE}:registry ${REGISTRY}
fi fi
npm config set -- $(echo ${REGISTRY} | sed -Ee "s/^https?://"):_authToken "${PLUGIN_TOKEN}" npm config set -- $(echo ${REGISTRY} | sed -Ee "s/^https?://"):_authToken "${PLUGIN_TOKEN}"