mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
ci: use --prefer-offline to speed up builds
This commit is contained in:
2
.github/workflows/core.tests.yml
vendored
2
.github/workflows/core.tests.yml
vendored
@@ -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
|
||||
|
||||
6
.github/workflows/web.tests.yml
vendored
6
.github/workflows/web.tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user