-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache doesn't work... so add a big note as a reminder for this
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|