From 3129901c4094ce6e8cddafb7f66adf320f67d881 Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 27 Sep 2023 19:49:19 -0400 Subject: [PATCH] b2b --- .../container-build/cerc-builder-js/build-npm-package.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/data/container-build/cerc-builder-js/build-npm-package.sh b/app/data/container-build/cerc-builder-js/build-npm-package.sh index 259b9326..a21be4b6 100755 --- a/app/data/container-build/cerc-builder-js/build-npm-package.sh +++ b/app/data/container-build/cerc-builder-js/build-npm-package.sh @@ -1,6 +1,13 @@ #!/bin/bash # Usage: build-npm-package.sh # Note: supply the registry auth token in CERC_NPM_AUTH_TOKEN +# +if [ "$GITEA_ACTIONS" = "true" ]; then + echo "WORKS" +else + echo "WTF" +fi + if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then set -x fi @@ -29,7 +36,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} # 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 -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 ) if [[ ! -z "$package_exists" && "$package_exists" != "null" ]]; then echo "${package_publish_version} of ${package_name} already exists in the registry"