Files
InfiniteAPI/.github/workflows/build.yml
T
Claude cf268a3c88 debug: add verbose logging to workflows to diagnose yarn install failure
Added debug output to see:
- Git URL rewrites configuration
- Environment variables
- Verbose yarn install output

This will help identify why yarn install is failing after the GITHUB_TOKEN fix.

https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
2026-02-14 05:10:00 +00:00

62 lines
1.7 KiB
YAML

name: Build Project
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Setup Node and Corepack
uses: actions/setup-node@v3.6.0
with:
node-version: 20.x
- name: Enable Corepack and Set Yarn Version
run: |
corepack enable
corepack prepare yarn@4.x --activate
- name: Configure Git for HTTPS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Force git to use HTTPS with token instead of SSH for GitHub repositories
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "ssh://git@github.com/"
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "git@github.com:"
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Restore Yarn Cache
uses: actions/cache@v4
id: yarn-cache
with:
path: |
node_modules
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Debug Git Config
run: |
echo "=== Git URL Rewrites ==="
git config --global --get-regexp url
echo "=== Environment ==="
env | grep -i git || true
- name: Install dependencies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_TERMINAL_PROMPT: 0
run: yarn install --immutable --verbose
- name: Build project
run: yarn build