Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
brombal committed Jan 15, 2024
1 parent 042c277 commit 2e07dc6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ jobs:
- name: Build
run: npm run build

- name: Cache build artifacts
uses: actions/cache@v2
with:
path: ./
key: cache-${{ github.sha }}

- name: Run Tests
run: npm test
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
needs: build-test
runs-on: ubuntu-latest
steps:
- name: Restore build artifacts
uses: actions/cache/restore@v2
with:
path: ./
key: cache-${{ github.sha }}

- name: Publish
run: cd ./${{ inputs.package }} && npm publish
env:
Expand Down

0 comments on commit 2e07dc6

Please sign in to comment.