Unverified 提交 a6a8cda9 authored 作者: wwwillchen-bot's avatar wwwillchen-bot 提交者: GitHub

ci: disable package manager cache in release workflow (#2929)

## Summary - disable `actions/setup-node` package manager caching in release workflow jobs - keep release builds on fresh `npm ci` installs to avoid cache-related release breakage - #skip-bugbot ## Test plan - `npm run fmt` - `npm run lint:fix` - `npm run ts` - `npm test` 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2929" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> Co-authored-by: 's avatarWill Chen <willchen90@gmail.com>
上级 620f8145
...@@ -30,6 +30,7 @@ jobs: ...@@ -30,6 +30,7 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with: with:
node-version-file: package.json node-version-file: package.json
package-manager-cache: false # Do NOT use GitHub Actions cache in release builds: https://adnanthekhan.com/2024/12/21/cacheract-the-monster-in-your-build-cache/
- name: Install npm 11.8.0 - name: Install npm 11.8.0
run: npm install -g npm@11.8.0 run: npm install -g npm@11.8.0
- run: npm ci - run: npm ci
...@@ -133,6 +134,7 @@ jobs: ...@@ -133,6 +134,7 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with: with:
node-version-file: package.json node-version-file: package.json
package-manager-cache: false # Do NOT use GitHub Actions cache in release builds: https://adnanthekhan.com/2024/12/21/cacheract-the-monster-in-your-build-cache/
- name: Install npm 11.8.0 - name: Install npm 11.8.0
run: npm install -g npm@11.8.0 run: npm install -g npm@11.8.0
- run: npm ci - run: npm ci
...@@ -166,6 +168,7 @@ jobs: ...@@ -166,6 +168,7 @@ jobs:
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with: with:
node-version-file: package.json node-version-file: package.json
package-manager-cache: false # Do NOT use GitHub Actions cache in release builds: https://adnanthekhan.com/2024/12/21/cacheract-the-monster-in-your-build-cache/
- name: Verify all release assets are uploaded - name: Verify all release assets are uploaded
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论