From 7fc2c4a56edff9a25ed1e508ec6125df9cfeadd9 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Wed, 8 Oct 2025 18:30:00 -0300 Subject: [PATCH] ci: exclude/protect node_modules and .pnpm-store in rsync to avoid permission issues --- .github/workflows/ci-cd-web-desktop.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index 8d92b82..3b81ea2 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -62,12 +62,20 @@ jobs: run: | mkdir -p "$APP_DIR" rsync -az --delete \ + --filter='protect node_modules' \ + --filter='protect node_modules/**' \ + --filter='protect .pnpm-store' \ + --filter='protect .pnpm-store/**' \ --filter='protect .env' \ --filter='protect .env*' \ --filter='protect apps/desktop/.env*' \ --filter='protect convex/.env*' \ --exclude '.git' \ --exclude '.next' \ + --exclude 'node_modules' \ + --exclude 'node_modules/**' \ + --exclude '.pnpm-store' \ + --exclude '.pnpm-store/**' \ --exclude '.env*' \ --exclude 'apps/desktop/.env*' \ --exclude 'convex/.env*' \ @@ -109,12 +117,20 @@ jobs: run: | mkdir -p "$APP_DIR" rsync -az --delete \ + --filter='protect node_modules' \ + --filter='protect node_modules/**' \ + --filter='protect .pnpm-store' \ + --filter='protect .pnpm-store/**' \ --filter='protect .env' \ --filter='protect .env*' \ --filter='protect apps/desktop/.env*' \ --filter='protect convex/.env*' \ --exclude '.git' \ --exclude '.next' \ + --exclude 'node_modules' \ + --exclude 'node_modules/**' \ + --exclude '.pnpm-store' \ + --exclude '.pnpm-store/**' \ --exclude '.env*' \ --exclude 'apps/desktop/.env*' \ --exclude 'convex/.env*' \