From d74b54d4ace4656ceac3811e59dab00afc3dd6ce Mon Sep 17 00:00:00 2001 From: stdavis Date: Wed, 8 Sep 2021 10:48:59 -0600 Subject: [PATCH] build(front): fix npm install from GH repo bug Ref: https://github.com/actions/setup-node/issues/214#issuecomment-742596196 --- .github/actions/front/deploy/action.yml | 9 +++++++++ .github/workflows/front.yml | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/actions/front/deploy/action.yml b/.github/actions/front/deploy/action.yml index c5f09987..776f0fa2 100644 --- a/.github/actions/front/deploy/action.yml +++ b/.github/actions/front/deploy/action.yml @@ -7,6 +7,15 @@ inputs: runs: using: "composite" steps: + # Use HTTPS instead of SSH to install dependencies from GitHub repos + # See: https://github.com/actions/setup-node/issues/214#issuecomment-810829250 + # this could be removed once git-rev-sync is pointed back at the upstream repo + - name: Reconfigure git to use HTTP authentication + shell: bash + run: > + git config --global url."https://github.com/".insteadOf + ssh://git@github.com/ + # this could be removed once setup-node adds support for .nvmrc files # ref: https://github.com/actions/setup-node/issues/32 - name: Get node version diff --git a/.github/workflows/front.yml b/.github/workflows/front.yml index 0c6ae157..aeb094e5 100644 --- a/.github/workflows/front.yml +++ b/.github/workflows/front.yml @@ -20,6 +20,14 @@ jobs: - name: Checkout uses: actions/checkout@v2 + # Use HTTPS instead of SSH to install dependencies from GitHub repos + # See: https://github.com/actions/setup-node/issues/214#issuecomment-810829250 + # this could be removed once git-rev-sync is pointed back at the upstream repo + - name: Reconfigure git to use HTTP authentication + run: > + git config --global url."https://github.com/".insteadOf + ssh://git@github.com/ + # this could be removed once setup-node adds support for .nvmrc files # ref: https://github.com/actions/setup-node/issues/32 - name: Get node version