Skip to content

Commit 9548609

Browse files
cipolleschireact-native-bot
authored andcommitted
Fix verifyReleaseOnNPM by dropping the v in the version (#49944)
Summary: GHA passes the version to the script with a `v` prefix. However, when we receive the version from NPM, the `v` prefix is not here. We can fix the script by dropping the `v` when it is passed to the function. bypass-github-export-checks ## Changelog: [Internal] - Fix verifyPackageOnNPM Pull Request resolved: #49944 Test Plan: GHA Reviewed By: cortinico, fabriziocucci Differential Revision: D70960414 Pulled By: cipolleschi fbshipit-source-id: 4234103ebe49cf715aea4a1473a8a60978f07a9f
1 parent 29caa07 commit 9548609

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflow-scripts/verifyReleaseOnNpm.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ module.exports.verifyReleaseOnNpm = async (
2323
retries = MAX_RETRIES,
2424
) => {
2525
const tag = version.includes('-rc.') ? 'next' : latest ? 'latest' : null;
26+
if (version.startsWith('v')) {
27+
version = version.slice(1);
28+
}
2629
await verifyPublishedPackage(REACT_NATIVE_NPM_PKG, version, tag, retries);
2730
};

0 commit comments

Comments
 (0)