ci: exclude/protect node_modules and .pnpm-store in rsync to avoid permission issues

This commit is contained in:
Esdras Renan 2025-10-08 18:30:00 -03:00
parent 3735e0d178
commit 7fc2c4a56e

View file

@ -62,12 +62,20 @@ jobs:
run: | run: |
mkdir -p "$APP_DIR" mkdir -p "$APP_DIR"
rsync -az --delete \ 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 .env*' \ --filter='protect .env*' \
--filter='protect apps/desktop/.env*' \ --filter='protect apps/desktop/.env*' \
--filter='protect convex/.env*' \ --filter='protect convex/.env*' \
--exclude '.git' \ --exclude '.git' \
--exclude '.next' \ --exclude '.next' \
--exclude 'node_modules' \
--exclude 'node_modules/**' \
--exclude '.pnpm-store' \
--exclude '.pnpm-store/**' \
--exclude '.env*' \ --exclude '.env*' \
--exclude 'apps/desktop/.env*' \ --exclude 'apps/desktop/.env*' \
--exclude 'convex/.env*' \ --exclude 'convex/.env*' \
@ -109,12 +117,20 @@ jobs:
run: | run: |
mkdir -p "$APP_DIR" mkdir -p "$APP_DIR"
rsync -az --delete \ 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 .env*' \ --filter='protect .env*' \
--filter='protect apps/desktop/.env*' \ --filter='protect apps/desktop/.env*' \
--filter='protect convex/.env*' \ --filter='protect convex/.env*' \
--exclude '.git' \ --exclude '.git' \
--exclude '.next' \ --exclude '.next' \
--exclude 'node_modules' \
--exclude 'node_modules/**' \
--exclude '.pnpm-store' \
--exclude '.pnpm-store/**' \
--exclude '.env*' \ --exclude '.env*' \
--exclude 'apps/desktop/.env*' \ --exclude 'apps/desktop/.env*' \
--exclude 'convex/.env*' \ --exclude 'convex/.env*' \