Skip to content

Commit 1e54c5d

Browse files
authored
Remove the v prefix from the version passed by GHA to the script (facebook#50130)
1 parent 166ea31 commit 1e54c5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflow-scripts/publishTemplate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ module.exports.verifyPublishedTemplate = async (
6868
latest = false,
6969
retries = MAX_RETRIES,
7070
) => {
71+
if (version.startsWith('v')) {
72+
version = version.slice(1);
73+
}
74+
7175
log(`🔍 Is ${TEMPLATE_NPM_PKG}@${version} on npm?`);
7276

7377
let count = retries;

0 commit comments

Comments
 (0)