From 5368f81c687648ed56410979fa85d4cd0f103c15 Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Mon, 1 Jul 2024 06:16:25 -0700 Subject: [PATCH] ci: Install yarn dependencies on cache misses I had thought the **Setup Node** step would also install my yarn dependencies. Turns out it only handles caching, so I still need to do the installation myself if the cache misses. --- .github/workflows/android.yml | 2 ++ .github/workflows/checks.yml | 2 ++ .github/workflows/ios.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f2f78e0..78322e9 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -24,6 +24,8 @@ jobs: with: node-version-file: 'package.json' cache: 'yarn' + - name: Install Node dependencies + run: yarn install - name: Build Application run: | echo $SECRETS_TAR_GZ_B64 | base64 -d | tar -xz -C fastlane diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 212eb2f..0d7de5c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -15,6 +15,8 @@ jobs: with: node-version-file: 'package.json' cache: 'yarn' + - name: Install Node dependencies + run: yarn install - name: Check lint rules run: yarn lint - name: Run JavaScript Tests diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 50f86a4..36e0c3a 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -24,6 +24,8 @@ jobs: with: node-version-file: 'package.json' cache: 'yarn' + - name: Install Node dependencies + run: yarn install - name: Setup Cocoapods [cache] uses: actions/cache@v2 id: cocoapods-cache