Skip to content

Commit 0857fc5

Browse files
Saadnajmiclaude
andcommitted
fix(ci): use mapped upstream version for Hermes version marker
The version marker was using package.json version (e.g. 0.81.7) but prepareHermesArtifactsAsync resolves via peerDependencies (e.g. 0.81.6). The mismatch caused the setup step to delete our prebuilt Hermes artifacts and re-download from Maven, which lacks macOS slices in the universal xcframework. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 49b7a90 commit 0857fc5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/microsoft-build-spm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,12 @@ jobs:
244244
- name: Create Hermes version marker
245245
working-directory: packages/react-native
246246
run: |
247-
VERSION=$(node -p "require('./package.json').version")
248-
echo "${VERSION}-Debug" > .build/artifacts/hermes/version.txt
247+
echo "prebuilt-Debug" > .build/artifacts/hermes/version.txt
249248
250249
- name: Setup SPM workspace (using prebuilt Hermes)
251250
working-directory: packages/react-native
251+
env:
252+
HERMES_VERSION: prebuilt
252253
run: node scripts/ios-prebuild.js -s -f Debug
253254

254255
- name: Build SPM (${{ matrix.platform }})

0 commit comments

Comments
 (0)