Unverified Commit a90e5d6e authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix last stable tag for release stats (#60850)

x-ref:
https://github.com/vercel/next.js/actions/runs/7576301894/job/20635069339

Closes NEXT-2159
parent 75f73fe9
......@@ -27,7 +27,9 @@ module.exports = (actionInfo) => {
)
}
// last stable tag will always be 1 patch less than canary
return `${major}.${minor}.${Number(patch) - 1}`
return `${major}.${minor}.${
Number(patch) - tag.includes('-canary') ? 1 : 0
}`
},
async getCommitId(repoDir = '') {
const { stdout } = await exec(`cd ${repoDir} && git rev-parse HEAD`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment