diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c7ad58650..091226cee 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -57,20 +57,7 @@ jobs: # ------------------------------------------------------- # Tier 1: Non-deployable files — skip if ONLY these changed # ------------------------------------------------------- - NON_DEPLOYABLE_PATTERN="^docs/\ -|^README\.md$\ -|^DEPLOYMENT\.md$\ -|^CLAUDE\.md$\ -|^checkpoint\.md$\ -|^orgstructure\.md$\ -|^ITMLS_DB_Design\.md$\ -|.*\.md$\ -|^\.eslintrc\ -|^\.prettierrc\ -|^\.editorconfig\ -|^\.gitignore\ -|^\.gitattributes\ -|^commitlint\.config\.js$" + NON_DEPLOYABLE_PATTERN="^docs/|^README\.md$|^DEPLOYMENT\.md$|^CLAUDE\.md$|^checkpoint\.md$|^orgstructure\.md$|^ITMLS_DB_Design\.md$|.*\.md$|^\.eslintrc|^\.prettierrc|^\.editorconfig|^\.gitignore|^\.gitattributes|^commitlint\.config\.js$" ALL_NON_DEPLOYABLE=true while IFS= read -r file; do @@ -89,26 +76,7 @@ jobs: # ------------------------------------------------------- # Tier 2: Global files — deploy all services # ------------------------------------------------------- - GLOBAL_PATTERN="^\.github/\ -|^docker-compose\.yaml$\ -|^turbo\.json$\ -|^tsconfig\.json$\ -|^tsconfig\.base\.json$\ -|^pnpm-workspace\.yaml$\ -|^pnpm-lock\.yaml$\ -|^package\.json$\ -|^\.env(\.[a-z]+)?$\ -|^packages/\ -|^infrastructure/\ -|^scripts/deploy/\ -|^wagon.*\.ts$\ -|^cargo.*\.ts$\ -|^container.*\.ts$\ -|^use-.*\.ts$\ -|^.*\.service\.ts$\ -|^.*\.entity\.ts$\ -|^.*-types\.ts$" - + GLOBAL_PATTERN="^\.github/^docker-compose\.yaml$|^turbo\.json$|^tsconfig\.json$|^tsconfig\.base\.json$|^pnpm-workspace\.yaml$|^pnpm-lock\.yaml$|^package\.json$|^\.env(\.[a-z]+)?$|^packages/|^infrastructure/|^scripts/deploy/|^wagon.*\.ts$|^cargo.*\.ts$|^container.*\.ts$|^use-.*\.ts$|^.*\.service\.ts$|^.*\.entity\.ts$|^.*-types\.ts$" if echo "$CHANGED" | grep -qE "$GLOBAL_PATTERN"; then echo "Global file(s) changed — deploying all services." JSON=$(printf '%s\n' "${ALL_SERVICES[@]}" | jq -R . | jq -sc .)