Skip to content

Commit

Permalink
ci: use setup-node's built-in caching
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0ji committed Sep 10, 2023
1 parent 90aa2a1 commit dcdbf50
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- $default-branch
workflow_dispatch:

env:
NODE_VERSION: 18
Expand All @@ -19,12 +18,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- name: Install 📦
run: npm ci
- name: Build Sassdoc 💄
Expand All @@ -41,6 +35,7 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
path: public

deploy:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit dcdbf50

Please sign in to comment.