Skip to content

Commit

Permalink
✨ footer version supports beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDepth committed Apr 26, 2023
1 parent e972bfc commit 15463ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const PACKAGE_FILE = resolve(ROOT, 'package.json')
async function prepareVersion (): Promise<string | undefined> {
const pkg = destr(fs.readFileSync(PACKAGE_FILE, 'utf-8'))
if (!pkg.version) return
if (/^\d+\.\d+\.\d+$/.test(pkg.version)) return pkg.version
if (/^\d+\.\d+\.\d+/.test(pkg.version)) return pkg.version

// If the version is not a valid semver, try to use current git commit hash instead
try {
Expand Down

0 comments on commit 15463ca

Please sign in to comment.