Skip to content

Commit

Permalink
Use Yarn caching in GitHub Actions (#19662)
Browse files Browse the repository at this point in the history
GitHub actions that install dependencies will now also cache those
dependencies using the standard strategy for Yarn (which is to hash the
lockfile).

This matches the module template (see MetaMask/metamask-module-template#145
for details).

This should have no functional impact except that this action will run
faster when dependencies are unchanged.
  • Loading branch information
Gudahtt committed Jun 26, 2023
1 parent 6bb786f commit ac8825b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/add-release-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: yarn

- name: Install dependencies
run: yarn --immutable
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fitness-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: yarn

- name: Install dependencies
run: yarn --immutable
Expand Down

0 comments on commit ac8825b

Please sign in to comment.