diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index ba39778b211..b66c98064ae 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 @@ -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 @@ -130,7 +142,7 @@ jobs: # fi # - name: Build - # run: | + # run: | # npm run build # npm --no-git-tag-version version $RELEASE_VERSION