一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
23 行
812 B
YAML
23 行
812 B
YAML
name: 'Install Yarn'
|
|
description: 'Enable Corepack and install the pinned Yarn version, with retries'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Install Yarn
|
|
shell: bash
|
|
# https://yarnpkg.com/getting-started/install
|
|
#
|
|
# `corepack enable` only sets up the shims - Corepack downloads the
|
|
# pinned Yarn version from repo.yarnpkg.com on first use. That fetch has
|
|
# a short timeout and no built-in retry, so a transient network blip on
|
|
# CI fails the whole job. Prepare it eagerly with a retry loop.
|
|
env:
|
|
COREPACK_NETWORK_TIMEOUT: '60000'
|
|
run: |
|
|
corepack enable
|
|
for i in 1 2 3; do
|
|
corepack prepare --activate && break
|
|
echo "corepack prepare failed (attempt $i), retrying in 15s..."
|
|
sleep 15
|
|
done
|