From 954c1ce88bb188069541c4b12a52588b2f884002 Mon Sep 17 00:00:00 2001 From: Armagan Ersoz Date: Thu, 11 May 2023 08:10:53 +1000 Subject: [PATCH 1/4] Use https for the npm registry url --- .github/actions/build_node/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build_node/entrypoint.sh b/.github/actions/build_node/entrypoint.sh index b95c09524..973bb63e8 100755 --- a/.github/actions/build_node/entrypoint.sh +++ b/.github/actions/build_node/entrypoint.sh @@ -8,7 +8,7 @@ if [ -n "$NPM_AUTH_TOKEN" ]; then NPM_REGISTRY_URL="${NPM_REGISTRY_URL-registry.npmjs.org}" # Allow registry.npmjs.org to be overridden with an environment variable - printf "//%s/:_authToken=%s\\nregistry=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "$NPM_REGISTRY_URL" > "$NPM_CONFIG_USERCONFIG" + printf "https://%s/:_authToken=%s\\nregistry=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "$NPM_REGISTRY_URL" > "$NPM_CONFIG_USERCONFIG" chmod 0600 "$NPM_CONFIG_USERCONFIG" fi From a81f12a239672feff419da0d9a03738181a39f3a Mon Sep 17 00:00:00 2001 From: Armagan Ersoz Date: Thu, 11 May 2023 08:18:07 +1000 Subject: [PATCH 2/4] try --- .github/actions/build_node/entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/build_node/entrypoint.sh b/.github/actions/build_node/entrypoint.sh index 973bb63e8..caf62b96c 100755 --- a/.github/actions/build_node/entrypoint.sh +++ b/.github/actions/build_node/entrypoint.sh @@ -5,10 +5,12 @@ set -e if [ -n "$NPM_AUTH_TOKEN" ]; then # Respect NPM_CONFIG_USERCONFIG if it is provided, default to $HOME/.npmrc NPM_CONFIG_USERCONFIG="${NPM_CONFIG_USERCONFIG-"$HOME/.npmrc"}" - NPM_REGISTRY_URL="${NPM_REGISTRY_URL-registry.npmjs.org}" + NPM_REGISTRY_URL="${NPM_REGISTRY_URL-https://registry.npmjs.org}" # Allow registry.npmjs.org to be overridden with an environment variable - printf "https://%s/:_authToken=%s\\nregistry=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "$NPM_REGISTRY_URL" > "$NPM_CONFIG_USERCONFIG" + echo "$NPM_REGISTRY_URL" + echo "//%s/:_authToken=%s\\nregistry=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "$NPM_REGISTRY_URL" + printf "//%s/:_authToken=%s\\nregistry=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "$NPM_REGISTRY_URL" > "$NPM_CONFIG_USERCONFIG" chmod 0600 "$NPM_CONFIG_USERCONFIG" fi From ac76c86a8d0824b5b6eba5cada48fa9f9df660c8 Mon Sep 17 00:00:00 2001 From: Armagan Ersoz Date: Thu, 11 May 2023 08:21:09 +1000 Subject: [PATCH 3/4] --legacy-peer-deps --- .github/actions/build_node/entrypoint.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/build_node/entrypoint.sh b/.github/actions/build_node/entrypoint.sh index caf62b96c..503c24431 100755 --- a/.github/actions/build_node/entrypoint.sh +++ b/.github/actions/build_node/entrypoint.sh @@ -8,8 +8,6 @@ if [ -n "$NPM_AUTH_TOKEN" ]; then NPM_REGISTRY_URL="${NPM_REGISTRY_URL-https://registry.npmjs.org}" # Allow registry.npmjs.org to be overridden with an environment variable - echo "$NPM_REGISTRY_URL" - echo "//%s/:_authToken=%s\\nregistry=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "$NPM_REGISTRY_URL" printf "//%s/:_authToken=%s\\nregistry=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "$NPM_REGISTRY_URL" > "$NPM_CONFIG_USERCONFIG" chmod 0600 "$NPM_CONFIG_USERCONFIG" fi @@ -33,7 +31,7 @@ echo "**************** Copying assets files to build directory ****************" cp -R ../build/ . echo "**************** Installing ****************" -npm install +npm install --legacy-peer-deps echo "**************** Building ****************" npm run build From 28b64763dbe31bb09e7065952fc3c5a661f000af Mon Sep 17 00:00:00 2001 From: Armagan Ersoz Date: Thu, 11 May 2023 08:39:04 +1000 Subject: [PATCH 4/4] update ruby version --- .github/actions/build_ruby/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build_ruby/Dockerfile b/.github/actions/build_ruby/Dockerfile index 0217535b6..e68b46262 100644 --- a/.github/actions/build_ruby/Dockerfile +++ b/.github/actions/build_ruby/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:2.6.0 +FROM ruby:3.0 RUN apt-get update && \ apt-get install --no-install-recommends -y \