Skip to content

Commit

Permalink
Re-enabled caching in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe committed Jul 14, 2024
1 parent c17a061 commit 31c247b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ jobs:
cache: "npm"
- name: Setup Pages
uses: actions/configure-pages@v3
# - name: Restore Cache
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
- name: Restore Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# Below is temporary due to <https://github.com/npm/cli/issues/4828>
# Maybe related to using devcontainer locally?
- name: Delete node_modules and package-lock.json
run: |
rm -rf node_modules
rm package-lock.json
# - name: Delete node_modules and package-lock.json
# run: |
# rm -rf node_modules
# rm package-lock.json
- name: Install dependencies
run: npm install
- name: Build Application
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ jobs:
cache: "npm"
- name: Setup Pages
uses: actions/configure-pages@v3
# - name: Restore Cache
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
- name: Restore Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# Below is temporary due to <https://github.com/npm/cli/issues/4828>
# Maybe related to using devcontainer locally?
- name: Delete node_modules and package-lock.json
run: |
rm -rf node_modules
rm package-lock.json
# - name: Delete node_modules and package-lock.json
# run: |
# rm -rf node_modules
# rm package-lock.json
- name: Install dependencies
run: npm install
- name: Build Application
Expand Down

0 comments on commit 31c247b

Please sign in to comment.