Skip to content

Commit

Permalink
ci: Use setup-node caching mechanism for yarn
Browse files Browse the repository at this point in the history
Signed-off-by: eXhumer <[email protected]>
  • Loading branch information
eXhumer committed Aug 21, 2024
1 parent ba49ab9 commit cab5e73
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'

- name: Setup Python
uses: actions/setup-python@v5
Expand All @@ -46,15 +47,7 @@ jobs:
run: python3 -m pip install setuptools
if: ${{ runner.os == 'macOS' }}

- name: Setup Yarn caching
id: yarn-cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}

- name: Install Yarn dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Build package (macOS)
Expand Down

0 comments on commit cab5e73

Please sign in to comment.