From ae944a02b716b0dc24dc2b404e24bb09b819342a Mon Sep 17 00:00:00 2001 From: Marc-Antoine Date: Sun, 21 Apr 2019 21:40:20 +0200 Subject: [PATCH 1/2] Backport entrypoint.sh from npm action I just backported changes made in the NPM action --- entrypoint.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index bbc5f70..5cee675 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,9 +6,16 @@ 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_STRICT_SSL="${NPM_STRICT_SSL-true}" + NPM_REGISTRY_SCHEME="https" + if ! $NPM_STRICT_SSL + then + NPM_REGISTRY_SCHEME="http" + fi # 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 "//%s/:_authToken=%s\\nregistry=%s\\nstrict-ssl=%s" "$NPM_REGISTRY_URL" "$NPM_AUTH_TOKEN" "${NPM_REGISTRY_SCHEME}://$NPM_REGISTRY_URL" "${NPM_STRICT_SSL}" > "$NPM_CONFIG_USERCONFIG" + chmod 0600 "$NPM_CONFIG_USERCONFIG" fi From 097057d996e40965bbb5b870afd178ff95b12340 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Date: Sun, 21 Apr 2019 21:45:04 +0200 Subject: [PATCH 2/2] Use full node image NPM for Github actions uses the full node image from docker. I need it because some of my dependencies need python and slim version does not seems to have it. More here: https://github.com/actions/npm/issues/8 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b093b53..02d879b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM node:10-slim +FROM node:10 -LABEL version="1.0.0" +LABEL version="1.1.0" LABEL repository="https://github.com/Borales/actions-yarn" LABEL homepage="https://github.com/Borales/actions-yarn" LABEL maintainer="Oleksandr Bordun "