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 (#388)
  • Loading branch information
oscard0m authored Jul 19, 2021
1 parent 849f602 commit 4b90245
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: bahmutov/npm-install@v1
with:
cache: npm
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "${{ matrix.node-version }}"
- uses: bahmutov/npm-install@v1
cache: npm
- run: npm ci
- run: "npm run test:ci"
test:
runs-on: ubuntu-latest
Expand All @@ -36,6 +37,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "${{ matrix.node-version }}"
- uses: bahmutov/npm-install@v1
cache: npm
- run: npm ci
- run: npm run lint
- run: npx lockfile-lint --path package-lock.json

0 comments on commit 4b90245

Please sign in to comment.