Browse Source

chore(gui-v2): debug github action

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

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

@ -54,6 +54,7 @@ jobs:
npm install && npm run build && npm publish &&
cd ../.. &&
sleep 30 &&
ls -al packages
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 &&

2
scripts/upgradeNocodbSdk2.js

@ -20,8 +20,10 @@ const replacePackageName = (filePath) => {
const bumbVersionAndSave = () => {
// upgrade nocodb-sdk version in nocodb
console.log("upgrade nocodb-sdk version in nocodb")
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 && npm install --save --save-exact ${nocodbSdkPackage.name}@${nocodbSdkPackage.version}`, {});
}

Loading…
Cancel
Save