Jelajahi Sumber

chore: Attempt to fix publish & install workflow

Michael Bromley 3 tahun lalu
induk
melakukan
92e048402a
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      .github/workflows/publish_and_install.yml

+ 3 - 3
.github/workflows/publish_and_install.yml

@@ -20,7 +20,7 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest, windows-latest, macos-latest]
-        node-version: [12.x, 14.x, 16.x]
+        node-version: [14.x, 16.x]
       fail-fast: false
     steps:
     - uses: actions/checkout@v2
@@ -49,9 +49,9 @@ jobs:
       id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
       with:
         path: '**/node_modules'
-        key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
+        key: ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
         restore-keys: |
-          ${{ runner.os }}-yarn-
+          ${{ runner.os }}-${{ matrix.node-version }}-yarn-
     - name: Yarn install
       if: steps.yarn-cache.outputs.cache-hit != 'true'
       run: |