Skip to content

Commit

Permalink
ci: try with separate caches part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Nov 6, 2023
1 parent eea7dfa commit 3950251
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,20 @@ jobs:
path:
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Cache node modules
- name: Cache microbit
id: cache-microbit
uses: actions/cache@v3
with:
path:
static/microbit
key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
- name: Cache node modules
id: cache-generated
uses: actions/cache@v3
with:
path:
src/generated
key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci
Expand Down Expand Up @@ -100,14 +107,19 @@ jobs:
path:
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: npm list
- name: Retrieve Node Modules
- name: Retrieve Microbit
uses: actions/cache@v3
with:
path:
static/microbit
key: ${{ runner.os }}-microbit-${{ hashFiles('package-lock.json') }}
- run: cd static/microbit && ls -la
- name: Retrieve Generated
uses: actions/cache@v3
with:
path:
src/generated
key: ${{ runner.os }}-generated-${{ hashFiles('package-lock.json') }}
- run: npm run build


# - name: Setup & Test
Expand All @@ -130,7 +142,7 @@ jobs:
# fi

# - name: Build
# run: |
# run: |
# npm run build
# npm --no-git-tag-version version $RELEASE_VERSION

Expand Down

0 comments on commit 3950251

Please sign in to comment.