Skip to content

Commit

Permalink
Fix: Use identical node cache in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Aug 6, 2023
1 parent 6e6669f commit e50f84c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main-build-deploy-GH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
NODE_VERSION: 18

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -32,10 +35,17 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Cache dependencies
id: node-modules-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-node_modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
run: yarn install --frozen-lockfile
if: steps.node-modules-cache.outputs.cache-hit != 'true'
- name: Compile WASM
run: yarn wasm
- name: Build
Expand Down

0 comments on commit e50f84c

Please sign in to comment.