Skip to content

Build your personal knowledge base with Trilium Notes

chore(nx/client): set up pnpm for release

Elian Doran273af2d83b28
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 27df220e27..505b34533c 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -44,8 +44,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
+ cache: 'pnpm'
- name: Install dependencies
- run: npm i
+ run: pnpm install --frozen-lockfile
+ - uses: nrwl/nx-set-shas@v4
- name: Update nightly version
run: npm run chore:ci-update-nightly-version
- name: Run the build
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c1ca7c6226..8f44bafeb5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -37,6 +37,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
+ cache: 'pnpm'
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+ - uses: nrwl/nx-set-shas@v4
- name: Run the build
uses: ./.github/actions/build-electron
with:
diff --git a/nx.json b/nx.json
index 29f05c4d06..7baa49b6c0 100644
--- a/nx.json
+++ b/nx.json
@@ -14,7 +14,9 @@
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/src/test-setup.[jt]s"
],
- "sharedGlobals": []
+ "sharedGlobals": [
+ "{workspaceRoot}/.github/workflows/release.yml"
+ ]
},
"plugins": [
{