Skip to content

Commit

Permalink
ci: Install yarn dependencies on cache misses
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thehale committed Jul 1, 2024
1 parent 78d0875 commit 5368f81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5368f81

Please sign in to comment.