ci(pnpm): run a check for monorepo dependency cycles, switch to pnpm i

pnpm i is an alias to pnpm install, so the shorter version is desired

Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
This commit is contained in:
Fernando Fernández
2026-04-07 18:58:12 +02:00
parent de14c404e6
commit de6989c152
6 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
},
"postCreateCommand": {
"tauri-deps": "install_packages $(cat packaging/tauri/apt_packages)",
"pnpm": "corepack pnpm install --frozen-lockfile",
"pnpm": "corepack pnpm i --frozen-lockfile",
"unshallow": "git fetch --unshallow || true"
},
"postAttachCommand": {
+1 -1
View File
@@ -75,7 +75,7 @@ jobs:
cache-workspaces: ${{ env.WORKING_DIR }}
- name: Install npm dependencies 📦
run: corepack pnpm install --frozen-lockfile
run: corepack pnpm i --frozen-lockfile
- name: Install Linux dependencies 📦🐧
if: ${{ matrix.platform == 'ubuntu' }}
+3 -1
View File
@@ -35,7 +35,9 @@ jobs:
- lint
- test
- check:types
# Checks for dependency cycles in the bundle and in the monorepo setup
- analyze:cycles
- 'pnpm i --lockfile-only --config.disallow-workspace-cycles=true'
steps:
- name: Checkout ⬇️
@@ -51,7 +53,7 @@ jobs:
check-latest: true
- name: Install dependencies 📦
run: corepack pnpm install --frozen-lockfile
run: corepack pnpm i --frozen-lockfile
- name: Run ${{ matrix.command }} ⚙️
run: corepack pnpm ${{ matrix.command }}
+2 -2
View File
@@ -9,8 +9,8 @@ const monorepoRoot = workspaceManifest ? dirname(workspaceManifest) : process.cw
/**
* Gets the workspace packages directly from pnpm configuration
* @param workspaceManifestPath
* @returns
* @param workspaceManifestPath
* @returns
*/
function getWorkspacePackagePatterns(workspaceManifestPath: string): string[] {
const workspace = parse(readFileSync(workspaceManifestPath, 'utf8')) as { packages?: unknown };
+1 -1
View File
@@ -12,7 +12,7 @@ override_dh_clistrip:
override_dh_auto_build:
cp -ra root/{package.json,pnpm-workspace.yaml,pnpm-lock.yaml,packages} $(CURDIR)/
corepack pnpm install --frozen-lockfile
corepack pnpm i --frozen-lockfile
cd packages/frontend && corepack pnpm build
mv $(CURDIR)/packages/frontend/dist $(CURDIR)/dist
rm -rf $(CURDIR)/packages $(CURDIR)/node_modules $(CURDIR)/package.json $(CURDIR)/pnpm-lock.yaml $(CURDIR)/pnpm-workspace.yaml
+1 -1
View File
@@ -15,7 +15,7 @@ COPY packages /app/packages
WORKDIR /app/packages/frontend
# Build client
RUN corepack pnpm install --frozen-lockfile && corepack pnpm build
RUN corepack pnpm i --frozen-lockfile && corepack pnpm build
# Deploy built distribution to nginx
FROM ghcr.io/nginxinc/nginx-unprivileged:stable-alpine-slim