Skip to content

fix(cli): warn when auth config falls back #236

fix(cli): warn when auth config falls back

fix(cli): warn when auth config falls back #236

Workflow file for this run

name: lockfile-check
# Fails any PR that changes package.json without updating bun.lock.
# Dependabot bumps #538/#552 landed with only package.json changes, which
# broke every scheduled job that installs with --frozen-lockfile
# (preview-snapshot, manifest-snapshot) for days — the dead preview
# backfill is what left profile cards pointing at 404 previews (#579).
# This check surfaces the drift at PR time instead.
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: lockfile-check-${{ github.ref }}
cancel-in-progress: true
jobs:
frozen-install:
name: bun install --frozen-lockfile
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install with frozen lockfile
run: bun install --frozen-lockfile
sdk-pin-match:
name: SDK pins agree
runs-on: ubuntu-latest
timeout-minutes: 5
# desktop-native-ci and desktop-release each pin the Native SDK
# commit they clone. They drifted once already: the CI moved to a
# commit carrying the deep-link work while the release stayed
# behind, which makes a green CI say nothing about the binary that
# ships. Same class of silent drift as package.json vs bun.lock.
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Compare NATIVE_SDK_REF across the desktop workflows
run: |
set -euo pipefail
ci=$(grep -oE 'NATIVE_SDK_REF: *"[0-9a-f]+"' .github/workflows/desktop-native-ci.yml | grep -oE '[0-9a-f]{40}')
rel=$(grep -oE 'NATIVE_SDK_REF: *"[0-9a-f]+"' .github/workflows/desktop-release.yml | grep -oE '[0-9a-f]{40}')
echo "desktop-native-ci: $ci"
echo "desktop-release: $rel"
test -n "$ci" || { echo "no NATIVE_SDK_REF found in desktop-native-ci.yml"; exit 1; }
test -n "$rel" || { echo "no NATIVE_SDK_REF found in desktop-release.yml"; exit 1; }
[ "$ci" = "$rel" ] || {
echo "FAIL: the CI and the release would build different SDK commits"; exit 1; }