File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 node-version : 20
2929 # 🟢 Cache npm dependencies
3030 cache : ' npm'
31+ cache-dependency-path : ' docs/package-lock.json'
3132
3233 - name : Setup Pages
3334 uses : actions/configure-pages@v4
4546 - name : Cache Astro build
4647 uses : actions/cache@v4
4748 with :
48- path : |
49- docs/.astro
50- docs/dist
49+ path : docs/.astro
5150 key : ${{ runner.os }}-astro-build-${{ github.sha }}
5251 restore-keys : |
5352 ${{ runner.os }}-astro-build-
6261 ${{ runner.os }}-contributors-${{ github.repository }}-
6362
6463 - name : Install dependencies
64+ working-directory : docs
6565 run : |
66- if [ -d "docs/ node_modules" ]; then
66+ if [ -d "node_modules" ]; then
6767 echo "Using cached node_modules"
6868 npm ci --prefer-offline --no-audit
6969 else
7272 fi
7373
7474 - name : Build site
75+ working-directory : docs
7576 env :
7677 # 🟢 GitHub token (rate limit 1000/hour)
7778 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments