Browse Source

chore(action): release-npm.yml - specify `utf8` encoding to read file content as string

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1620/head
Pranav C 3 years ago
parent
commit
29da7613a9
  1. 2
      scripts/upgradeNocodbSdk.js

2
scripts/upgradeNocodbSdk.js

@ -5,7 +5,7 @@ const { mainModule } = require('process');
const execSync = require('child_process').execSync;
// extract latest version from package.json
const nocodbSdkPackage = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'packages', 'nocodb-sdk', 'package.json')))
const nocodbSdkPackage = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'packages', 'nocodb-sdk', 'package.json'), 'utf8'))
const replacePackageName = (filePath) => {
return new Promise((resolve, reject) => {

Loading…
Cancel
Save