From 0851918762f9ffc1d3dac1aa7ab52b5cb7efb0b8 Mon Sep 17 00:00:00 2001 From: Sourav Kashyap Date: Fri, 17 Apr 2026 14:10:46 +0530 Subject: [PATCH] chore(deps): add post-install script to rebuild sqlite3 and fix failing tests add post-install script to rebuild sqlite3 and fix failing tests GH-289 --- .github/workflows/main.yaml | 2 ++ .github/workflows/release.yaml | 11 +++++++---- package-lock.json | 18 +++++++++--------- package.json | 18 +++++++++--------- 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 17dc1df..dc47484 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -19,6 +19,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install Dependencies run: npm ci --ignore-scripts + - name: afterinstall + run: npm run afterinstall - name: Run Test Cases run: npm run test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index babdc17..b8956fd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch permissions: contents: write - id-token: write # REQUIRED for trusted publishing + id-token: write # REQUIRED for trusted publishing jobs: Release: @@ -21,11 +21,11 @@ jobs: token: ${{ secrets.RELEASE_COMMIT_GH_PAT }} - name: Setup Node - uses: actions/setup-node@v4 # UPDATED to v4 + uses: actions/setup-node@v4 # UPDATED to v4 with: node-version: '22' registry-url: 'https://registry.npmjs.org' - always-auth: false # important for trusted publishing + always-auth: false # important for trusted publishing - name: Configure CI Git User run: | @@ -38,7 +38,10 @@ jobs: CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }} - name: Install 📌 - run: npm install --ignore-scripts + run: npm ci --ignore-scripts + + - name: afterinstall + run: npm run afterinstall - name: Test 🔧 run: npm run test diff --git a/package-lock.json b/package-lock.json index bad634f..87a75f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5212,9 +5212,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.336", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.336.tgz", - "integrity": "sha512-AbH9q9J455r/nLmdNZes0G0ZKcRX73FicwowalLs6ijwOmCJSRRrLX63lcAlzy9ux3dWK1w1+1nsBJEWN11hcQ==", + "version": "1.5.340", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.340.tgz", + "integrity": "sha512-908qahOGocRMinT2nM3ajCEM99H4iPdv84eagPP3FfZy/1ZGeOy2CZYzjhms81ckOPCXPlW7LkY4XpxD8r1DrA==", "dev": true, "license": "ISC" }, @@ -13414,9 +13414,9 @@ } }, "node_modules/read-pkg/node_modules/type-fest": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.5.0.tgz", - "integrity": "sha512-PlBfpQwiUvGViBNX84Yxwjsdhd1TUlXr6zjX7eoirtCPIr08NAmxwa+fcYBTeRQxHo9YC9wwF3m9i700sHma8g==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.6.0.tgz", + "integrity": "sha512-8ZiHFm91orbSAe2PSAiSVBVko18pbhbiB3U9GglSzF/zCGkR+rxpHx6sEMCUm4kxY4LjDIUGgCfUMtwfZfjfUA==", "dev": true, "license": "(MIT OR CC0-1.0)", "dependencies": { @@ -14149,9 +14149,9 @@ } }, "node_modules/semantic-release/node_modules/type-fest": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.5.0.tgz", - "integrity": "sha512-PlBfpQwiUvGViBNX84Yxwjsdhd1TUlXr6zjX7eoirtCPIr08NAmxwa+fcYBTeRQxHo9YC9wwF3m9i700sHma8g==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.6.0.tgz", + "integrity": "sha512-8ZiHFm91orbSAe2PSAiSVBVko18pbhbiB3U9GglSzF/zCGkR+rxpHx6sEMCUm4kxY4LjDIUGgCfUMtwfZfjfUA==", "dev": true, "license": "(MIT OR CC0-1.0)", "dependencies": { diff --git a/package.json b/package.json index bc9c1c9..261f910 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,8 @@ "posttest": "npm run lint", "test:dev": "lb-mocha --allow-console-logs dist/__tests__/**/*.js && npm run posttest", "prepublishOnly": "npm run test", - "prepare": "husky install" + "prepare": "husky install", + "afterinstall": "npm rebuild sqlite3" }, "repository": { "type": "git", @@ -158,14 +159,13 @@ ], "@semantic-release/release-notes-generator", [ - "@semantic-release/npm", - { - "npmPublish": true, - "pkgRoot": ".", - "tarballDir": "dist" - } - ], - + "@semantic-release/npm", + { + "npmPublish": true, + "pkgRoot": ".", + "tarballDir": "dist" + } + ], [ "@semantic-release/git", {