diff --git a/.github/workflows/anchor-link-audit.yml b/.github/workflows/anchor-link-audit.yml index 8b730eb2286..09e8d8eb03c 100644 --- a/.github/workflows/anchor-link-audit.yml +++ b/.github/workflows/anchor-link-audit.yml @@ -29,16 +29,8 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - run: pnpm run build env: @@ -64,13 +56,6 @@ jobs: ./bin/htmltest -c ./bin/.htmltest.yml 2>&1 | grep -v "#_top" | tee /tmp/htmltest-filtered.txt || true if grep -q "hash does not exist" /tmp/htmltest-filtered.txt; then exit 1; fi - - name: Save node_modules cache - if: always() - uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - name: Create issue on failure if: ${{ failure() }} env: diff --git a/.github/workflows/bigbonk.yml b/.github/workflows/bigbonk.yml index 44c87facbae..c3f4455537c 100644 --- a/.github/workflows/bigbonk.yml +++ b/.github/workflows/bigbonk.yml @@ -40,16 +40,8 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Run Bonk uses: ask-bonk/ask-bonk/github@main diff --git a/.github/workflows/bonk.yml b/.github/workflows/bonk.yml index 66f5ce84325..d6127c28749 100644 --- a/.github/workflows/bonk.yml +++ b/.github/workflows/bonk.yml @@ -64,16 +64,8 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Run Lil Bonk uses: ask-bonk/ask-bonk/github@main diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eff63fdadb7..1fe11e07268 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,16 +63,8 @@ jobs: exit 1 fi - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Post codeowners comment run: pnpm exec tsx bin/post-codeowners-comment/index.ts @@ -135,22 +127,14 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Restore Astro assets from cache uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 with: path: | - .astro-cache/assets + node_modules/.astro/assets key: astro-assets-${{ hashFiles('src/assets/**') }} restore-keys: | astro-assets- @@ -204,16 +188,8 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Download artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 @@ -250,16 +226,8 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Post PR CI failure comment continue-on-error: true @@ -293,16 +261,8 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Download artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 diff --git a/.github/workflows/publish-production.yml b/.github/workflows/publish-production.yml index eae4d2bd7a6..ed3dff1e404 100644 --- a/.github/workflows/publish-production.yml +++ b/.github/workflows/publish-production.yml @@ -26,22 +26,14 @@ jobs: node-version: 24.x cache: pnpm - - name: Restore node_modules (cache hit) - id: node-modules-cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: node_modules - key: node-modules-${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('package.json') }} - - - name: Install node_modules (cache miss) + - name: Install dependencies run: pnpm install --frozen-lockfile - if: steps.node-modules-cache.outputs.cache-hit != 'true' - name: Restore Astro assets from cache uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 with: path: | - .astro-cache/assets + node_modules/.astro/assets key: astro-assets-${{ hashFiles('src/assets/**') }} restore-keys: | astro-assets- diff --git a/.gitignore b/.gitignore index 611e7c7b751..32440935c35 100644 --- a/.gitignore +++ b/.gitignore @@ -6,9 +6,6 @@ distllms/ # generated types .astro/ -# Astro build cache -.astro-cache/ - # skills/ is fetched from middlecache via bin/fetch-skills.ts skills/ !.agents/skills/ diff --git a/astro.config.ts b/astro.config.ts index 5904c9ebbeb..d0ff1153c2f 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -273,7 +273,6 @@ export default defineConfig({ defaultStrategy: "hover", }, outDir: "./dist", - cacheDir: ".astro-cache", markdown, image: { service: { @@ -291,7 +290,7 @@ export default defineConfig({ ...appVite, server: { watch: { - ignored: ["**/dist/**", "**/.astro-cache/**"], + ignored: ["**/dist/**"], }, }, },