From bc10d33cb28c980a60219b1fa296f8c95cc6dc26 Mon Sep 17 00:00:00 2001 From: developomp Date: Wed, 29 Sep 2021 14:41:36 +0900 Subject: [PATCH] potntial fix for gh deploy action --- .github/workflows/firebase-hosting-deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-hosting-deploy.yml b/.github/workflows/firebase-hosting-deploy.yml index fb81435..44e3676 100644 --- a/.github/workflows/firebase-hosting-deploy.yml +++ b/.github/workflows/firebase-hosting-deploy.yml @@ -10,10 +10,17 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@master - - uses: actions/cache@main + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules with: path: "source/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('source/yarn.lock') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('source/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - name: Install Dependencies and Build run: cd source && yarn install && yarn build - name: Archive Production Artifact