Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: resolve critical issues in npm dependency update workflow

LearningCircuit1fa19fa3be4a
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index b5c5a59602..3d4828795e 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -23,9 +23,7 @@ Automatically updates NPM dependencies across all package.json files in the proj
### Directories Managed
- `/` - Main web dependencies (Vite, Bootstrap, etc.)
-- `/tests` - Test utilities (Puppeteer, Chai, Mocha)
- `/tests/ui_tests` - UI test dependencies (Puppeteer)
-- `/tests/infrastructure_tests` - Infrastructure test dependencies (Jest)
### Branch Strategy
- Creates branch: `update-npm-dependencies-{run_number}`
diff --git a/.github/workflows/update-npm-dependencies.yml b/.github/workflows/update-npm-dependencies.yml
index 364ca248fc..78d9f611d1 100644
--- a/.github/workflows/update-npm-dependencies.yml
+++ b/.github/workflows/update-npm-dependencies.yml
@@ -26,12 +26,11 @@ jobs:
matrix:
npm_directory:
- { path: '.', build_cmd: 'npm run build', test_cmd: '', cache_path: 'package-lock.json' }
- - { path: 'tests', build_cmd: '', test_cmd: 'npm run test:api-key', cache_path: 'package-lock.json' }
- { path: 'tests/ui_tests', build_cmd: '', test_cmd: 'echo "Skipping UI tests in CI - requires server"', cache_path: 'package-lock.json' }
- - { path: 'tests/infrastructure_tests', build_cmd: '', test_cmd: 'npm test', cache_path: 'package-lock.json' }
+ continue-on-error: false
steps:
- name: 📰 Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: dev
@@ -42,13 +41,6 @@ jobs:
cache: 'npm'
cache-dependency-path: ${{ matrix.npm_directory.path }}/${{ matrix.npm_directory.cache_path }}
- - name: 📦 Install dependencies (if needed)
- run: |
- cd ${{ matrix.npm_directory.path }}
- if [ ! -f "package-lock.json" ]; then
- npm install
- fi
-
- name: 🔍 Security audit
run: |
cd ${{ matrix.npm_directory.path }}
@@ -57,7 +49,7 @@ jobs:
- name: 🔐 Fix security vulnerabilities
run: |
cd ${{ matrix.npm_directory.path }}
- npm audit fix --level moderate --force
+ npm audit fix --level moderate || echo "Some vulnerabilities could not be auto-fixed"
- name: 👚 Update to latest compatible versions
run: |
@@ -79,25 +71,14 @@ jobs:
- name: 📝 Check for changes
id: verify-changed-files
run: |
- # Check if we're in the matrix directory
- if [ -d "${{ matrix.npm_directory.path }}" ]; then
- cd ${{ matrix.npm_directory.path }}
+ cd ${{ matrix.npm_directory.path }}
- # Check if package.json exists
- if [ -f "package.json" ]; then
- # Check for changes in package.json or package-lock.json
- git add package.json package-lock.json 2>/dev/null || true
- if git diff --cached --quiet package.json package-lock.json 2>/dev/null; then
- echo "changed=false" >> $GITHUB_OUTPUT
- else
- echo "changed=true" >> $GITHUB_OUTPUT
- echo "path=${{ matrix.npm_directory.path }}" >> $GITHUB_OUTPUT
- fi
- else
- echo "changed=false" >> $GITHUB_OUTPUT
- fi
- else
+ # Check if package.json or package-lock.json have changed
+ if git diff --quiet package.json package-lock.json; then
echo "changed=false" >> $GITHUB_OUTPUT
+ else
+ echo "changed=true" >> $GITHUB_OUTPUT
+ echo "path=${{ matrix.npm_directory.path }}" >> $GITHUB_OUTPUT
fi
- name: 📝 Create pull request
@@ -105,9 +86,9 @@ jobs:
if: steps.verify-changed-files.outputs.changed == 'true'
with:
branch: update-npm-dependencies-${{ github.run_number }}
- title: 🤖 Update NPM dependencies
+ title: 🤖 Update dependencies
body: |
- This PR updates NPM dependencies to their latest compatible versions and fixes security vulnerabilities.
+ This PR updates dependencies to their latest compatible versions.
**Updated directory:** `${{ steps.verify-changed-files.outputs.path }}`
@@ -116,12 +97,12 @@ jobs:
- Compatible version updates for dependencies
- Updated lock files for reproducible builds
- This PR was created by the NPM Update Bot.
+ This PR was created by the Dependency Update Bot.
sign-commits: true
add-paths: |
${{ steps.verify-changed-files.outputs.path }}/package.json
${{ steps.verify-changed-files.outputs.path }}/package-lock.json
- commit-message: 🤖 Update NPM dependencies in ${{ matrix.npm_directory.path }}
+ commit-message: 🤖 Update dependencies
labels: maintenance 🔧
draft: false
base: dev