Skip to content

Commit 182fa82

Browse files
committed
Revert "Use content hash for react-native builds (facebook#26734)"
This reverts commit 5dd90c5.
1 parent 3b15879 commit 182fa82

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

.github/workflows/commit_artifacts.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,7 @@ jobs:
225225
name: compiled-rn
226226
path: compiled-rn/
227227
- run: git status -u
228-
- name: Check if only the REVISION file has changed
229-
id: check_should_commit
230-
run: |
231-
if git status --porcelain | grep -qv '/REVISION$'; then
232-
echo "should_commit=true" >> "$GITHUB_OUTPUT"
233-
else
234-
echo "should_commit=false" >> "$GITHUB_OUTPUT"
235-
fi
236228
- name: Commit changes to branch
237-
if: steps.check_should_commit.outputs.should_commit == 'true'
238229
uses: stefanzweifel/git-auto-commit-action@v4
239230
with:
240231
commit_message: |

scripts/rollup/build-all-release-channels.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -173,27 +173,7 @@ function processStable(buildDir) {
173173
);
174174
}
175175

176-
const reactNativeBuildDir = buildDir + '/react-native/implementations/';
177-
if (fs.existsSync(reactNativeBuildDir)) {
178-
const hash = crypto.createHash('sha1');
179-
for (const fileName of fs.readdirSync(reactNativeBuildDir).sort()) {
180-
const filePath = reactNativeBuildDir + fileName;
181-
const stats = fs.statSync(filePath);
182-
if (!stats.isDirectory()) {
183-
hash.update(fs.readFileSync(filePath));
184-
}
185-
}
186-
updatePlaceholderReactVersionInCompiledArtifacts(
187-
reactNativeBuildDir,
188-
ReactVersion +
189-
'-' +
190-
canaryChannelLabel +
191-
'-' +
192-
hash.digest('hex').slice(0, 8)
193-
);
194-
}
195-
196-
// Update remaining placeholders with canary channel version
176+
// Update remaining placeholders with next channel version
197177
updatePlaceholderReactVersionInCompiledArtifacts(
198178
buildDir,
199179
ReactVersion + '-' + canaryChannelLabel + '-' + sha + '-' + dateString

0 commit comments

Comments
 (0)