Skip to content

Build your personal knowledge base with Trilium Notes

chore(nx/ci): set up pnpm install

Elian Doran9f5d23349d3a
diff --git a/.github/actions/build-server/action.yml b/.github/actions/build-server/action.yml
index d471a60fea..4143addb79 100644
--- a/.github/actions/build-server/action.yml
+++ b/.github/actions/build-server/action.yml
@@ -16,7 +16,7 @@ runs:
cache: "npm"
- name: Install dependencies
shell: bash
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Run Linux server build
env:
MATRIX_ARCH: ${{ inputs.arch }}
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 50ca915c9d..297e1cca7c 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -66,7 +66,7 @@ jobs:
node-version: 22
cache: "npm"
- - run: npm ci
+ - run: pnpm install --frozen-lockfile
- name: Run the build
uses: ./.github/actions/build-server
@@ -97,8 +97,7 @@ jobs:
with:
node-version: 22
cache: "npm"
-
- - run: npm ci
+ - run: pnpm install --frozen-lockfile
- name: Run the unit tests
run: npm run test
@@ -111,7 +110,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install dependencies
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Update build info
run: npm run chore:update-build-info
- uses: docker/setup-buildx-action@v3
@@ -135,7 +134,7 @@ jobs:
uses: actions/checkout@v4
- name: Install dependencies
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Update build info
run: npm run chore:update-build-info
diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.yml
index 20ef3697b1..b1d288f840 100644
--- a/.github/workflows/main-docker.yml
+++ b/.github/workflows/main-docker.yml
@@ -50,7 +50,7 @@ jobs:
cache: "npm"
- name: Install npm dependencies
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: npx playwright install --with-deps
@@ -134,7 +134,7 @@ jobs:
uses: actions/checkout@v4
- name: Install dependencies
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Update build info
run: npm run chore:update-build-info
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
index 28fc087293..7f313de992 100644
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -15,7 +15,7 @@ jobs:
with:
node-version: lts/*
- name: Install dependencies
- run: npm ci
+ run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests