Skip to content

Commit 134f642

Browse files
committed
chore: 패키지 변경 시 stage 배포 트리거 반영
1 parent f1c0b1c commit 134f642

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy-stage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
outputs:
1212
web: ${{ steps.filter.outputs.web }}
1313
admin: ${{ steps.filter.outputs.admin }}
14+
shared: ${{ steps.filter.outputs.shared }}
1415
root: ${{ steps.filter.outputs.root }}
1516
steps:
1617
- name: Checkout repository
@@ -25,6 +26,8 @@ jobs:
2526
- 'apps/web/**'
2627
admin:
2728
- 'apps/admin/**'
29+
shared:
30+
- 'packages/**'
2831
root:
2932
- 'package.json'
3033
- 'pnpm-lock.yaml'
@@ -36,7 +39,7 @@ jobs:
3639
name: Deploy Web (Stage)
3740
runs-on: ubuntu-latest
3841
needs: detect-changes
39-
if: needs.detect-changes.outputs.web == 'true' || needs.detect-changes.outputs.root == 'true'
42+
if: needs.detect-changes.outputs.web == 'true' || needs.detect-changes.outputs.shared == 'true' || needs.detect-changes.outputs.root == 'true'
4043
env:
4144
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4245
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB_STAGE }}
@@ -124,7 +127,7 @@ jobs:
124127
name: Deploy Admin (Stage)
125128
runs-on: ubuntu-latest
126129
needs: detect-changes
127-
if: needs.detect-changes.outputs.admin == 'true' || needs.detect-changes.outputs.root == 'true'
130+
if: needs.detect-changes.outputs.admin == 'true' || needs.detect-changes.outputs.shared == 'true' || needs.detect-changes.outputs.root == 'true'
128131
env:
129132
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
130133
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_ADMIN_STAGE }}

0 commit comments

Comments
 (0)