Skip to content

Commit

Permalink
ci(workflow): add 'npm' cache for actions/setup-node in .github/workf…
Browse files Browse the repository at this point in the history
…lows (#72)
  • Loading branch information
oscard0m authored Jul 5, 2021
1 parent 6eb9615 commit 1429700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
cache: npm
- run: npm ci
- run: npm run build --if-present
- run: npx semantic-release
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ jobs:

# Setup Node.js with the correct version
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

# Cache dependencies
- uses: actions/cache@v1
Expand Down

0 comments on commit 1429700

Please sign in to comment.