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 (#86)
  • Loading branch information
oscard0m committed Jul 19, 2021
1 parent 0aece7d commit e1eca10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: "12.x"
cache: npm
- run: npm ci
- run: npm run build
- run: npx semantic-release
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
uses: actions/setup-node@v2
with:
version: "${{ matrix.node_version }}"
cache: npm
- run: npm ci
- run: npm run start-fixtures-server &
- run: sleep 3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: "12.x"
cache: npm
- run: npm ci
- run: npm --prefix ./docs ci ./docs
- run: npm run build --prefix ./docs -- --prefix-paths
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- uses: actions/setup-node@v2
with:
version: 12
cache: npm
- run: npm ci
- run: npm run lint:fix
- uses: gr2m/create-or-update-pull-request-action@v1.x
Expand Down

0 comments on commit e1eca10

Please sign in to comment.