mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
ci: refactor desktop app release ci, add nightly build
This commit is contained in:
17
scripts/get-pkg-version.js
Normal file
17
scripts/get-pkg-version.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// This script file outputs the version in the package.json of project dir,
|
||||
// and optionally add nightly postfix.
|
||||
//
|
||||
// It is used as a helper by the continuous integration.
|
||||
const path = require('path')
|
||||
const process = require('process')
|
||||
|
||||
const ver = require(path.join(__dirname, '../package.json')).version
|
||||
|
||||
if (process.argv[2] === 'nightly') {
|
||||
const today = new Date()
|
||||
console.log(
|
||||
ver + '+nightly.' + today.toISOString().split('T')[0].replaceAll('-', '')
|
||||
)
|
||||
} else {
|
||||
console.log(ver)
|
||||
}
|
||||
Reference in New Issue
Block a user