Skip to content

Commit a6b39db

Browse files
EdwardAngertClaude
and
Claude
committed
fix: disable pnpm cache to avoid 422 errors in GitHub Actions
- Remove pnpm cache in Node.js setup to avoid 422 errors - Improve dependency installation with fallback command - Add more descriptive log messages - Handle pnpm cache failures gracefully 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 388ee03 commit a6b39db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/docs-unified.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,17 @@ jobs:
113113
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
114114
with:
115115
node-version: '20'
116-
cache: 'pnpm'
116+
# Skip cache to avoid 422 errors from GitHub Actions cache service
117+
# cache: 'pnpm'
117118

118119
- name: Install dependencies
119120
if: steps.docs-core-setup.outputs.needs_node == 'true'
120-
run: ./scripts/pnpm_install.sh --no-frozen-lockfile
121+
shell: bash
122+
run: |
123+
echo "Installing Node.js dependencies"
124+
# Run with --prefer-offline to use local cache if available, but don't fail if not
125+
./scripts/pnpm_install.sh --prefer-offline || ./scripts/pnpm_install.sh --no-frozen-lockfile
126+
echo "Node.js dependencies installed successfully"
121127
122128
- name: Prepare for Vale
123129
if: steps.docs-core-setup.outputs.needs_vale == 'true'

0 commit comments

Comments
 (0)