syntax?
parent
4572207266
commit
008ee35fa0
|
|
@ -42,7 +42,7 @@ local_npm_registry_url_fixed=$( echo ${local_npm_registry_url} | sed -e 's/^http
|
||||||
npm config set -- ${local_npm_registry_url_fixed}:_authToken ${CERC_NPM_AUTH_TOKEN}
|
npm config set -- ${local_npm_registry_url_fixed}:_authToken ${CERC_NPM_AUTH_TOKEN}
|
||||||
# First check if the version of this package we're trying to build already exists in the registry
|
# First check if the version of this package we're trying to build already exists in the registry
|
||||||
# but this line: "jq -r .data.dist.tarball" fails only in gitea, so skip this block
|
# but this line: "jq -r .data.dist.tarball" fails only in gitea, so skip this block
|
||||||
if [[ ${GITEA_ACTIONS} != "true" ]]; then
|
if [[ "${GITEA_ACTIONS}" != "true" ]]; then
|
||||||
package_exists=$( yarn info --json ${package_name}@${package_publish_version} 2>/dev/null | jq -r .data.dist.tarball )
|
package_exists=$( yarn info --json ${package_name}@${package_publish_version} 2>/dev/null | jq -r .data.dist.tarball )
|
||||||
if [[ ! -z "$package_exists" && "$package_exists" != "null" ]]; then
|
if [[ ! -z "$package_exists" && "$package_exists" != "null" ]]; then
|
||||||
echo "${package_publish_version} of ${package_name} already exists in the registry"
|
echo "${package_publish_version} of ${package_name} already exists in the registry"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue