Skip to content

Commit b926852

Browse files
committed
actions cache updates
1 parent a9cbc41 commit b926852

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/actions/node-restore-cache/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ runs:
5959
else
6060
npm install --ignore-scripts --no-audit --no-fund
6161
fi
62+
if [ -d node_modules/sqlite3 ]; then
63+
npm rebuild sqlite3 --no-audit --no-fund
64+
fi

.github/actions/node-setup-cache/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,21 @@ runs:
7676
npm install --ignore-scripts --no-audit --no-fund
7777
fi
7878
79+
- name: Rebuild native modules skipped by --ignore-scripts
80+
if: inputs.install-dependencies == 'true'
81+
shell: bash
82+
env:
83+
PKG_DIR: ${{ inputs.working-directory }}
84+
run: |
85+
set -euo pipefail
86+
WD="${PKG_DIR:-.}"
87+
if [ "$WD" != "." ]; then
88+
cd "$WD"
89+
fi
90+
if [ -d node_modules/sqlite3 ]; then
91+
npm rebuild sqlite3 --no-audit --no-fund
92+
fi
93+
7994
- name: Save node_modules cache
8095
id: cache-node-modules
8196
uses: actions/cache@v4

0 commit comments

Comments
 (0)