Browse Source

chore(gui-v2): debug github action

pull/3273/head
Wing-Kam Wong 2 years ago
parent
commit
d0961fcec1
  1. 5
      .github/workflows/release-npm-v2.yml
  2. 2
      scripts/upgradeNcGui2.js
  3. 1
      scripts/upgradeNocodbSdk2.js

5
.github/workflows/release-npm-v2.yml

@ -53,14 +53,13 @@ jobs:
cat packages/nc-gui-v2/package.json
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js &&
cd packages/nocodb-sdk &&
npm install && npm run build && npm publish &&
npm ci && npm run build && npm publish &&
cd ../.. &&
sleep 60
cat packages/nc-gui-v2/package.json
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNocodbSdk2.js &&
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/bumpNcGuiVersion.js &&
cd packages/nc-gui-v2 &&
npm install &&
npm ci &&
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} npm run build:copy:publish &&
cd ../.. &&
sleep 60 &&

2
scripts/upgradeNcGui2.js

@ -22,7 +22,7 @@ const replacePackageName = (filePath) => {
const bumbVersionAndSave = () => {
// upgrade nc-lib-gui-v2 version in nocodb
execSync(`cd packages/nocodb && npm install --save --save-exact ${ncLibPackage.name}@${ncLibPackage.version}`, {});
execSync(`cd packages/nocodb && npm ci --save --save-exact ${ncLibPackage.name}@${ncLibPackage.version}`, {});
const nocodbPackageFilePath = path.join(__dirname, '..', 'packages', 'nocodb', 'package.json')
const nocoLibPackage = JSON.parse(fs.readFileSync(nocodbPackageFilePath))
if (process.env.targetEnv === 'DEV') {

1
scripts/upgradeNocodbSdk2.js

@ -24,6 +24,7 @@ const bumbVersionAndSave = () => {
execSync(`cd packages/nocodb && npm install --save --save-exact ${nocodbSdkPackage.name}@${nocodbSdkPackage.version}`, {});
// upgrade nocodb-sdk version in nc-gui-v2
console.log("upgrade nocodb-sdk version in nc-gui-v2")
execSync(`cd packages/nc-gui-v2 && cat package.json`)
execSync(`cd packages/nc-gui-v2 && npm install --save --save-exact ${nocodbSdkPackage.name}@${nocodbSdkPackage.version}`, {});
}

Loading…
Cancel
Save