Skip to content

Commit

Permalink
Merge pull request #147 from nschonni/setup-node-cache
Browse files Browse the repository at this point in the history
chore: use NPM cache in setup-node
  • Loading branch information
keithamus committed Dec 8, 2021
2 parents f74ee45 + 9ca0cb2 commit 4fa8897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Expand Up @@ -8,17 +8,18 @@ jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: npm install, build, and test
run: |
npm ci
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Expand Up @@ -13,6 +13,7 @@ jobs:
with:
node-version: 14
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: npm run build --if-present
- run: npm test
Expand Down

0 comments on commit 4fa8897

Please sign in to comment.