From 1e54c5d305b67e86f75f7141239b5a41b4d074aa Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 20 Mar 2025 13:34:28 +0000 Subject: [PATCH] Remove the v prefix from the version passed by GHA to the script (#50130) --- .github/workflow-scripts/publishTemplate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflow-scripts/publishTemplate.js b/.github/workflow-scripts/publishTemplate.js index 980534f011a..da22f90d1ea 100644 --- a/.github/workflow-scripts/publishTemplate.js +++ b/.github/workflow-scripts/publishTemplate.js @@ -68,6 +68,10 @@ module.exports.verifyPublishedTemplate = async ( latest = false, retries = MAX_RETRIES, ) => { + if (version.startsWith('v')) { + version = version.slice(1); + } + log(`🔍 Is ${TEMPLATE_NPM_PKG}@${version} on npm?`); let count = retries;