From dda40e3181a33e49aed979260a5b784d0886d26d Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 23 Aug 2022 12:19:29 +0800 Subject: [PATCH] chore(gui-v2): debug github action --- .github/workflows/release-npm-v2.yml | 1 + scripts/upgradeNocodbSdk2.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/release-npm-v2.yml b/.github/workflows/release-npm-v2.yml index 7e5951f1da..64d16c446b 100644 --- a/.github/workflows/release-npm-v2.yml +++ b/.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 && diff --git a/scripts/upgradeNocodbSdk2.js b/scripts/upgradeNocodbSdk2.js index a0f1a5c0a4..2d3876ef38 100644 --- a/scripts/upgradeNocodbSdk2.js +++ b/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}`, {}); }