Skip to content

Commit

Permalink
优化前端版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
hslr-s committed Feb 1, 2024
1 parent 097b23c commit c9a3aa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions add-frontend-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const moment = require('moment')
// const latestTag = execSync('git describe --tags --abbrev=0').toString().trim()

// 设置默认时区为 'Asia/Shanghai'
moment.tz.setDefault('Asia/Shanghai')
const packDate = moment().format('YYYYMMDD')
const packDate = moment().utc().format('YYYYMMDD')

// 要追加的内容
const contentToAppend = `\nVITE_APP_VERSION=${packDate}`
Expand Down

0 comments on commit c9a3aa0

Please sign in to comment.