9a3e7a2f50
- switch root package manager to pnpm 10.33.4 via packageManager field - add .npmrc with node-linker=hoisted for RN/Expo compatibility - convert yarn resolutions to pnpm.overrides; pin psl@1.9.0 and @types/psl@1.1.1 to keep types resolving under exports-aware resolution - pin react-compiler-runtime and babel-plugin-react-compiler to real rc.3 (the deprecated "Wrong version name was published" tag would otherwise resolve) - add pnpm.onlyBuiltDependencies allowlist for @sentry/cli, core-js-pure, esbuild, unrs-resolver - regenerate pnpm-lock.yaml; delete yarn.lock; drop postinstall-postinstall - update all workflows, Dockerfile, Dockerfile.embedr (root-level), Makefile, conductor.json; bskyembed/bskylink/bskyogcard/dev-env stay on yarn - update docs (CLAUDE.md, docs/build.md, docs/testing.md, docs/localization.md, bskyweb/README.md, scripts/push-notification/README.md, BlueskyClip/README.md) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: Lockfile
|
|
|
|
on:
|
|
pull_request:
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
verify-pnpm-lock:
|
|
name: No manual pnpm-lock.yaml edits
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out PR HEAD
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Fetch base branch
|
|
env:
|
|
BASE_REF: ${{ github.base_ref }}
|
|
run: git fetch origin $BASE_REF --depth=1
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
- name: Install node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- name: Reset pnpm-lock.yaml to base
|
|
env:
|
|
BASE_REF: ${{ github.base_ref }}
|
|
run: git show "origin/$BASE_REF:pnpm-lock.yaml" > pnpm-lock.yaml
|
|
|
|
- name: pnpm install
|
|
uses: Wandalen/wretry.action@master
|
|
with:
|
|
# Fine to skip scripts since we don't run any code
|
|
command: pnpm install --ignore-scripts
|
|
attempt_limit: 3
|
|
attempt_delay: 2000
|
|
|
|
- name: Verify pnpm-lock.yaml
|
|
run: |
|
|
git diff --quiet --exit-code || {
|
|
echo '::error::`pnpm-lock.yaml` does not match what pnpm would generate given the base `pnpm-lock.yaml` and the head `package.json`.'
|
|
echo '::error:: - If this is intentional, you can ignore this check.'
|
|
echo '::error:: - If this is unintentional, apply the following diff:'
|
|
git --no-pager diff
|
|
exit 1
|
|
}
|