Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Fix how caching works
Browse files Browse the repository at this point in the history
  • Loading branch information
bbody committed Apr 28, 2021
1 parent 228088c commit 313e075
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
uses: actions/cache@v1
with:
path: dist
key: ${{ runner.os }}-node-modules
key: ${{ hashFiles('./yarn.lock') }}-node-modules
- name: Setup environment
run: npm install && npm run setup
- name: Cache Build
id: build-cache
uses: actions/cache@v1
with:
path: dist
key: ${{ runner.os }}-build-cache
key: ${{ github.run_id }}-build-cache
- name: Build
run: npm run build
- name: Serve assets
Expand Down Expand Up @@ -60,13 +60,13 @@ jobs:
uses: actions/cache@v1
with:
path: dist
key: ${{ runner.os }}-node-modules
key: ${{ hashFiles('./yarn.lock') }}-node-modules
- name: Cache Build
id: build-cache
uses: actions/cache@v1
with:
path: dist
key: ${{ runner.os }}-build-cache
key: ${{ github.run_id }}-build-cache
- name: NPM Release
if: success()
uses: JS-DevTools/npm-publish@v1
Expand All @@ -86,13 +86,13 @@ jobs:
uses: actions/cache@v1
with:
path: dist
key: ${{ runner.os }}-node-modules
key: ${{ hashFiles('./yarn.lock') }}-node-modules
- name: Cache Build
id: build-cache
uses: actions/cache@v1
with:
path: dist
key: ${{ runner.os }}-build-cache
key: ${{ github.run_id }}-build-cache
- name: Delete package.json
run: rm package.json
- name: GitHub Pages Deployment
Expand All @@ -101,5 +101,5 @@ jobs:
with:
branch: gh-pages
folder: dist
clean: true
single-commit: true
token: ${{ secrets.GITHUB_PAT }}

0 comments on commit 313e075

Please sign in to comment.