Skip to content

Commit

Permalink
chore: Update installation and cache actions in GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
codemile committed Jun 1, 2024
1 parent e3a3c97 commit 4dd49e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ runs:
id: cache-node-modules
with:
path: "node_modules"
key: ${{ runner.os }}-${{ runner.arch }}-node-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-${{ runner.arch }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-node-
${{ runner.os }}-${{ runner.arch }}-node-modules-
- name: "📥 Install dependencies"
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ jobs:
node-version: "20"
cache: "yarn"

- name: "💽 Restore node_modules cache"
uses: reactgular/cache@v1
with:
mode: "restore"
- name: "📦 Install dependencies"
uses: ./.github/actions/install

- name: "🔨 Test"
run: ${{ env.NX }} affected -t test
Expand Down

0 comments on commit 4dd49e8

Please sign in to comment.