mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:05:26 +00:00
wip: pr release
This commit is contained in:
@@ -10,6 +10,8 @@ const version = packageJson.version
|
||||
if (process.env.targetEnv === 'DEV') {
|
||||
// nightly build
|
||||
// e.g. 0.84.2-20220220-1250
|
||||
// pr build
|
||||
// e.g. 0.84.2-pr-1234-20220220-1250
|
||||
packageJson.version = `${packageJson.version}-${process.env.targetVersion}`
|
||||
packageJson.name += '-daily'
|
||||
} else {
|
||||
|
||||
@@ -33,7 +33,7 @@ const bumbVersionAndSave = () => {
|
||||
}
|
||||
|
||||
if (process.env.targetEnv === 'DEV') {
|
||||
// replace nc-lib-gui by nc-lib-gui-daily if it is nightly build
|
||||
// replace nc-lib-gui by nc-lib-gui-daily if it is nightly build / pr release
|
||||
const filePaths = [
|
||||
path.join(__dirname, '..', 'packages', 'nocodb', 'Dockerfile'),
|
||||
path.join(__dirname, '..', 'packages', 'nocodb', 'litestream', 'Dockerfile'),
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
const fs = require('fs')
|
||||
const path = require('path');
|
||||
const { mainModule } = require('process');
|
||||
|
||||
const execSync = require('child_process').execSync;
|
||||
|
||||
// extract latest version from package.json
|
||||
@@ -68,7 +66,7 @@ const searchAndReplace = (target) => {
|
||||
}
|
||||
|
||||
if (process.env.targetEnv === 'DEV') {
|
||||
// replace nocodb-sdk by nocodb-sdk-daily if it is nightly build
|
||||
// replace nocodb-sdk by nocodb-sdk-daily if it is nightly build / pr build
|
||||
searchAndReplace('nocodb-sdk')
|
||||
.then(() => {
|
||||
bumbVersionAndSave()
|
||||
|
||||
Reference in New Issue
Block a user