Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,40 @@ jobs:
['expo-router', pkg.dependencies['expo-router']],
]

// A pin read as undefined means the entry was deleted from package.json,
// not that the resolve drifted: the guard silently loses its teeth for
// that module, so name that failure separately from a real drift.
const unpinned = []
const mismatches = []
for (const [name, expected] of checks) {
const actual = require(`${name}/package.json`).version
if (expected === undefined) {
console.log(`UNPINNED ${name}: resolved=${actual} pinned=<missing>`)
unpinned.push(`${name} (resolved ${actual})`)
continue
}
const ok = actual === expected
console.log(`${ok ? 'ok ' : 'MISMATCH'} ${name}: resolved=${actual} pinned=${expected}`)
if (!ok) mismatches.push(`${name} resolved ${actual} but is pinned to ${expected}`)
}

if (unpinned.length > 0) {
console.error(
`::error::Guarded native modules have no version pin in apps/mobile/package.json: ${unpinned.join('; ')}. ` +
'Every module listed in this guard must keep an exact pin in dependencies or overrides. ' +
'Restore the pin instead of dropping it from the guard.'
)
}

if (mismatches.length > 0) {
console.error(
`::error::Pinned native module versions drifted: ${mismatches.join('; ')}. ` +
'This is the verified coherent reanimated + Expo SDK 57.0.4 set; a newer ' +
'resolve can break reanimated or the release build. Fix the pins/overrides in apps/mobile/package.json.'
)
process.exit(1)
}

if (unpinned.length > 0 || mismatches.length > 0) process.exit(1)
NODE

- name: Validate Expo dependency compatibility
Expand Down
1 change: 1 addition & 0 deletions apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"expo-image-picker": "57.0.2",
"expo-linear-gradient": "57.0.0",
"expo-linking": "57.0.2",
"expo-modules-core": "57.0.3",
"expo-notifications": "57.0.3",
"expo-router": "57.0.4",
"expo-secure-store": "57.0.0",
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading