Browse Source

chore(gui-v2): debug github action

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

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

@ -49,13 +49,11 @@ jobs:
node-version: 16.15.0
registry-url: 'https://registry.npmjs.org'
- run: |
ls -al packages/nc-gui-v2
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 ci && npm run build && npm publish &&
cd ../.. &&
sleep 60
sleep 60 &&
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 &&

3
scripts/upgradeNocodbSdk2.js

@ -20,11 +20,8 @@ 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 && cat package.json`)
execSync(`cd packages/nc-gui-v2 && npm install --save --save-exact ${nocodbSdkPackage.name}@${nocodbSdkPackage.version}`, {});
}

Loading…
Cancel
Save