wip: pr release

This commit is contained in:
Wing-Kam Wong
2022-04-27 13:27:57 +08:00
parent de8fd072ae
commit d5117d3c8b
6 changed files with 102 additions and 8 deletions

View File

@@ -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 {

View File

@@ -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'),

View File

@@ -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()