Skip to content

Commit 626c0d3

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 9ce2a0f commit 626c0d3

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
@@ -257,12 +257,13 @@ jobs:
257257
if: steps.cache-slice.outputs.cache-hit != 'true'
258258
working-directory: packages/react-native
259259
run: |
260-
VERSION=$(node -p "require('./package.json').version")
261-
echo "${VERSION}-Debug" > .build/artifacts/hermes/version.txt
260+
echo "prebuilt-Debug" > .build/artifacts/hermes/version.txt
262261
263262
- name: Setup SPM workspace (using prebuilt Hermes)
264263
if: steps.cache-slice.outputs.cache-hit != 'true'
265264
working-directory: packages/react-native
265+
env:
266+
HERMES_VERSION: prebuilt
266267
run: node scripts/ios-prebuild.js -s -f Debug
267268

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

0 commit comments

Comments
 (0)