From 099f7cadcdf5bb626245fc9c24220e1ebdc1e76a Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 9 Apr 2022 00:01:42 +0800 Subject: [PATCH] fix: nightly build for nocodb-sdk Signed-off-by: Wing-Kam Wong --- .github/workflows/release-npm.yml | 5 ++--- scripts/upgradeNocodbSdk.js | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index b2bbf985e6..4e58751435 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -46,10 +46,9 @@ jobs: node-version: '16.x' registry-url: 'https://registry.npmjs.org' - run: | + targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js cd packages/nocodb-sdk - targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node ../../scripts/bumpNocodbSdkVersion.js - npm install && npm run build - npm publish + npm install && npm run build && npm publish cd ../.. targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNocodbSdk.js cd packages/nc-gui diff --git a/scripts/upgradeNocodbSdk.js b/scripts/upgradeNocodbSdk.js index 5f41dd29c5..a72937f274 100644 --- a/scripts/upgradeNocodbSdk.js +++ b/scripts/upgradeNocodbSdk.js @@ -58,9 +58,10 @@ const searchAndReplace = (target) => { fs.readFile(d, function(err, content) { if (err) reject(err) if (content.indexOf(target) > -1) { - replacePackageName(d) + resolve(replacePackageName(d)) + } else { + resolve() } - resolve() }) }) }))