Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: use `--prefer-offline` to speed up builds

Abdullah Attaa36dae1d478d
diff --git a/.github/workflows/core.tests.yml b/.github/workflows/core.tests.yml
index f41dc8f24..dff865e53 100644
--- a/.github/workflows/core.tests.yml
+++ b/.github/workflows/core.tests.yml
@@ -42,7 +42,7 @@ jobs:
- name: Prepare environment
run: |
- npm ci --no-audit
+ npm ci --prefer-offline --no-audit
- name: Add environment variables
run: |
echo "EMAIL=${{ secrets.USER_EMAIL }}" >> $GITHUB_ENV
diff --git a/.github/workflows/web.tests.yml b/.github/workflows/web.tests.yml
index b2e64076a..496fa5352 100644
--- a/.github/workflows/web.tests.yml
+++ b/.github/workflows/web.tests.yml
@@ -43,8 +43,8 @@ jobs:
- name: Install packages
run: |
- npm i --ignore-scripts --no-audit
- npx lerna bootstrap --ignore=@notesnook/mobile -- --no-audit
+ npm i --ignore-scripts --prefer-offline --no-audit
+ npx lerna bootstrap --ignore=@notesnook/mobile -- --prefer-offline --no-audit
- name: Setup environment
run: |
@@ -94,7 +94,7 @@ jobs:
- name: Install packages
run: |
- npm i --ignore-scripts --no-audit
+ npm i --ignore-scripts --prefer-offline --no-audit
npm install -D @playwright/test
- name: Validate build extraction