Browse Source

chore: change -dev to -daily

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1326/head
Wing-Kam Wong 3 years ago
parent
commit
f7f89935c7
  1. 2
      .github/workflows/release-docker.yml
  2. 2
      packages/nc-gui/nuxt.config.js
  3. 4
      scripts/upgradeNcGui.js

2
.github/workflows/release-docker.yml

@ -45,7 +45,7 @@ jobs:
run: |
DOCKER_REPOSITORY=nocodb
if [[ ${{ github.event.inputs.targetEnv || inputs.targetEnv }} == 'DEV' ]]; then
DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-dev
DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-daily
fi
echo "::set-output name=DOCKER_REPOSITORY::${DOCKER_REPOSITORY}"
echo ${DOCKER_REPOSITORY}

2
packages/nc-gui/nuxt.config.js

@ -179,7 +179,7 @@ export default {
// nightly build
// e.g. 0.84.2-20220220-1250
packageJson.version = `${packageJson.version}-${process.env.targetVersion}`
packageJson.name += '-dev'
packageJson.name += '-daily'
} else {
packageJson.version = version
}

4
scripts/upgradeNcGui.js

@ -25,13 +25,13 @@ const bumbVersionAndSave = () => {
execSync(`cd packages/nocodb && npm install --save --save-exact ${ncLibPackage.name}@${ncLibPackage.version}`, {});
const nocodbPackageFilePath = path.join(__dirname, '..', 'packages', 'nocodb', 'package.json')
const nocoLibPackage = JSON.parse(fs.readFileSync(nocodbPackageFilePath))
nocoLibPackage.name = `${nocoLibPackage.name}-dev`
nocoLibPackage.name = `${nocoLibPackage.name}-daily`
nocoLibPackage.version = ncLibPackage.version
fs.writeFileSync(nocodbPackageFilePath, JSON.stringify(nocoLibPackage, null, 2));
}
if (process.env.targetEnv === 'DEV') {
// replace nc-lib-gui by nc-lib-gui-dev if it is nightly build
// replace nc-lib-gui by nc-lib-gui-daily if it is nightly build
const filePaths = [
path.join(__dirname, '..', 'packages', 'nocodb', 'Dockerfile'),
path.join(__dirname, '..', 'packages', 'nocodb', 'litestream', 'Dockerfile'),

Loading…
Cancel
Save