72c49352a3
Fixes "Permission denied (publickey)" error when Yarn tries to fetch libsignal dependency via SSH in GitHub Actions. Added git config to force HTTPS instead of SSH for all GitHub URLs in all workflows that run yarn install. https://claude.ai/code/session_01QPt4WssG6jjEciQKdVpFtK
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Linting Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
check-lint:
|
|
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
|
|
run: |
|
|
# Force git to use HTTPS instead of SSH for GitHub repositories
|
|
# This fixes "Permission denied (publickey)" errors in CI
|
|
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
|
|
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
|
|
|
- name: Restore Yarn Cache
|
|
uses: actions/cache@v3
|
|
id: yarn-cache
|
|
with:
|
|
path: .yarn/cache
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-yarn-
|
|
|
|
- name: Install packages
|
|
run: yarn install --immutable
|
|
|
|
- name: Check linting
|
|
run: yarn lint
|