run nm ci when not already installed into repository folder
Testing / test (push) Failing after 14m20s

This commit is contained in:
2026-05-01 19:44:18 +02:00
parent 6f7c4fc7ea
commit f836844791
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -414,8 +414,7 @@ uv run pytest -q
On NixOS or hosts without global Node/npm: On NixOS or hosts without global Node/npm:
```sh ```sh
nix-shell nix-shell # automatically runs npm ci when node_modules is missing/outdated
npm ci
npm run check:extension npm run check:extension
``` ```
+7
View File
@@ -9,5 +9,12 @@ pkgs.mkShell {
shellHook = '' shellHook = ''
echo "browser-cli dev shell: node $(node --version), npm $(npm --version), uv $(uv --version)" echo "browser-cli dev shell: node $(node --version), npm $(npm --version), uv $(uv --version)"
if [ -f package-lock.json ]; then
if [ ! -f node_modules/.package-lock.json ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then
echo "Installing extension dependencies with npm ci..."
npm ci
fi
fi
''; '';
} }