Skip to content

Commit 042403f

Browse files
committed
[LOCAL] Force the right version on Artifacts when testing
1 parent 19359ed commit 042403f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/releases-ci/__tests__/publish-npm-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe('publish-npm', () => {
176176

177177
expect(updateHermesVersionsToNightlyMock).not.toHaveBeenCalled();
178178
expect(setVersionMock).not.toBeCalled();
179-
expect(updateReactNativeArtifactsMock).not.toBeCalled();
179+
expect(updateReactNativeArtifactsMock).toBeCalledWith(version, 'dry-run');
180180

181181
// Generate Android artifacts is now delegate to build_android entirely
182182
expect(generateAndroidArtifactsMock).not.toHaveBeenCalled();

scripts/releases-ci/publish-npm.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ async function publishNpm(buildType /*: BuildType */) /*: Promise<void> */ {
117117
await updateHermesVersionsToNightly();
118118
}
119119
await updateReactNativeArtifacts(version, buildType);
120+
} else {
121+
await updateReactNativeArtifacts(projectInfo.version, buildType);
120122
}
121123
}
122124

0 commit comments

Comments
 (0)