From 7888269a0e115ac14577654028278a4cbc6d87df Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 23 Aug 2022 13:11:50 +0800 Subject: [PATCH] chore(gui-v2): debug github action --- .github/workflows/release-npm-v2.yml | 4 +--- scripts/upgradeNocodbSdk2.js | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/release-npm-v2.yml b/.github/workflows/release-npm-v2.yml index 014c01d36f..45265841cb 100644 --- a/.github/workflows/release-npm-v2.yml +++ b/.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 && diff --git a/scripts/upgradeNocodbSdk2.js b/scripts/upgradeNocodbSdk2.js index 287ffc11b3..a0f1a5c0a4 100644 --- a/scripts/upgradeNocodbSdk2.js +++ b/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}`, {}); }