Skip to content

Commit

Permalink
test caching for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Callidon committed Apr 24, 2021
1 parent 3aedb7e commit 0fce71c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 📦 Release Node.js Package
name: 🚀 Publish to npm
on:
release:
types: [created]
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/npm_test_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v2
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
- name: Install package
run: npm install
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Build TS
run: npm run build
run: yarn build
- name: Test package
run: npm test

run: yarn test

0 comments on commit 0fce71c

Please sign in to comment.