Skip to content

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

Python

Forgejo CI: use npm install (package-lock.json is gitignored, no committed lock for npm ci/cache)

Murtaza Nasir2adf0e5f9e90
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml
index 34d6d769..5a650c19 100644
--- a/.forgejo/workflows/test.yml
+++ b/.forgejo/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