Skip to content

Commit a48345e

Browse files
chore(deps): add post-install script to rebuild sqlite3 and fix faili… (#290)
## add post-install script to rebuild sqlite3 and fix failing tests ## Checklist: - [ ] Performed a self-review of my own code - [ ] npm test passes on your machine - [ ] New tests added or existing tests modified to cover all changes - [ ] Code conforms with the style guide - [ ] API Documentation in code was updated
1 parent 877ca68 commit a48345e

4 files changed

Lines changed: 27 additions & 22 deletions

File tree

.github/workflows/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
node-version: ${{ matrix.node-version }}
2020
- name: Install Dependencies
2121
run: npm ci --ignore-scripts
22+
- name: afterinstall
23+
run: npm run afterinstall
2224
- name: Run Test Cases
2325
run: npm run test
2426

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: workflow_dispatch
44

55
permissions:
66
contents: write
7-
id-token: write # REQUIRED for trusted publishing
7+
id-token: write # REQUIRED for trusted publishing
88

99
jobs:
1010
Release:
@@ -21,11 +21,11 @@ jobs:
2121
token: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
2222

2323
- name: Setup Node
24-
uses: actions/setup-node@v4 # UPDATED to v4
24+
uses: actions/setup-node@v4 # UPDATED to v4
2525
with:
2626
node-version: '22'
2727
registry-url: 'https://registry.npmjs.org'
28-
always-auth: false # important for trusted publishing
28+
always-auth: false # important for trusted publishing
2929

3030
- name: Configure CI Git User
3131
run: |
@@ -38,7 +38,10 @@ jobs:
3838
CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }}
3939

4040
- name: Install 📌
41-
run: npm install --ignore-scripts
41+
run: npm ci --ignore-scripts
42+
43+
- name: afterinstall
44+
run: npm run afterinstall
4245

4346
- name: Test 🔧
4447
run: npm run test

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"posttest": "npm run lint",
4545
"test:dev": "lb-mocha --allow-console-logs dist/__tests__/**/*.js && npm run posttest",
4646
"prepublishOnly": "npm run test",
47-
"prepare": "husky install"
47+
"prepare": "husky install",
48+
"afterinstall": "npm rebuild sqlite3"
4849
},
4950
"repository": {
5051
"type": "git",
@@ -158,14 +159,13 @@
158159
],
159160
"@semantic-release/release-notes-generator",
160161
[
161-
"@semantic-release/npm",
162-
{
163-
"npmPublish": true,
164-
"pkgRoot": ".",
165-
"tarballDir": "dist"
166-
}
167-
],
168-
162+
"@semantic-release/npm",
163+
{
164+
"npmPublish": true,
165+
"pkgRoot": ".",
166+
"tarballDir": "dist"
167+
}
168+
],
169169
[
170170
"@semantic-release/git",
171171
{

0 commit comments

Comments
 (0)