Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Fix GitHub js-tests CI: drop npm cache and use npm install since package-lock.json is gitignored, matching Forgejo workflow

Murtaza Nasiraa40fa785cb7
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index fa1a0781..143f3352 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -68,10 +68,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
- cache: npm
+ # No npm cache: package-lock.json is gitignored in this repo, so it's
+ # never in the CI checkout. cache: npm (and npm ci) both require a
+ # committed lock file, so we use `npm install` below instead.
- name: Install dependencies
- run: npm ci
+ run: npm install
- name: Run Vitest
run: npm test