Skip to content

Commit

Permalink
Cache doesn't work... so add a big note as a reminder for this
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Mar 15, 2024
1 parent 0594c40 commit afcf6a1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,30 @@ runs:
with:
node-version: '20'

####################################################################################################################
# DO NOT USE NPM CACHE... As it is SLOWER than pulling the packages down npm!
####################################################################################################################
# - name: "Get npm cache directory"
# id: npm-cache-dir
# shell: bash
# run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
#
# - name: "Restore npm cache"
# uses: actions/[email protected]
# id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
# with:
# path: ${{ steps.npm-cache-dir.outputs.dir }}
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
# - name: "Npm Cache Status"
# uses: actions/[email protected]
# with:
# script: |
# core.info('Cache Hit: \u001b[38;5;6m$${{steps.npm-cache.outputs.cache-hit}}');
# core.notice('Cache Hit: ${{steps.npm-cache.outputs.cache-hit}}');
####################################################################################################################

- name: "NPM: Install dependencies"
working-directory: ${{github.workspace}}/src
shell: bash
Expand Down

0 comments on commit afcf6a1

Please sign in to comment.