Skip to content

Commit

Permalink
[tools] fixed publish-preview script
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Sep 23, 2024
1 parent 188fa87 commit c7ed628
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/publish-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const main = async () => {
require: [],
options: [],
})
const version = await getLatestTag()
// remove leading 'v'
const version = (await getLatestTag()).slice(1)
const info = buildVersionInfo({
version,
})
Expand All @@ -23,7 +24,7 @@ const main = async () => {
}

const buildVersionInfo = ({ version }) => {
const fileName = `sitlife-${version}.apk`
const fileName = `sitlife-v${version}.apk`
const info = {
version,
releaseNote: {
Expand Down

0 comments on commit c7ed628

Please sign in to comment.