diff --git a/.github/workflows/release-executables.yml b/.github/workflows/release-executables.yml index 191d912701..5fc5614e14 100644 --- a/.github/workflows/release-executables.yml +++ b/.github/workflows/release-executables.yml @@ -68,6 +68,10 @@ jobs: - name : Install nocodb, other dependencies and build executables run: | cd ./scripts/pkg-executable + + # downgrade sqlite3 to 5.1.6 until build related issues are resolved + # https://github.com/TryGhost/node-sqlite3/issues/1748 + node ../downgradeSqlite.js # Install nocodb version based on provided tag name npm i -E nocodb@${{ github.event.inputs.tag || inputs.tag }} diff --git a/scripts/downgradeSqlite.js b/scripts/downgradeSqlite.js new file mode 100644 index 0000000000..695c000a20 --- /dev/null +++ b/scripts/downgradeSqlite.js @@ -0,0 +1,13 @@ +const fs = require('fs') +const path = require('path'); + +const filePath = path.join(__dirname, '..', 'scripts','pkg-executable','package.json'); + +const nocodbSdkPackage = JSON.parse(fs.readFileSync(filePath, 'utf8')) + +// downgrade sqlite3 to 5.1.6 until build related issues are resolved +// https://github.com/TryGhost/node-sqlite3/issues/1748 +nocodbSdkPackage.overrides = nocodbSdkPackage.overrides || {}; +nocodbSdkPackage.overrides.sqlite3 = "5.1.6" + +fs.writeFileSync(filePath, JSON.stringify(nocodbSdkPackage, null, 2), 'utf8');