We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da7c77b commit d16cfdeCopy full SHA for d16cfde
.github/workflows/ci.yml
@@ -142,7 +142,11 @@ jobs:
142
- name: Check if website is affected
143
id: check-affected
144
run: |
145
- if pnpm nx show projects --affected -t build --base="$NX_BASE" --head="$NX_HEAD" | grep -q "^website$"; then
+ if [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then
146
+ # Always deploy website on main branch
147
+ echo "affected=true" >> $GITHUB_OUTPUT
148
+ echo "Main branch push - deploying website to production"
149
+ elif pnpm nx show projects --affected -t build --base="$NX_BASE" --head="$NX_HEAD" | grep -q "^website$"; then
150
echo "affected=true" >> $GITHUB_OUTPUT
151
echo "Website is affected by changes"
152
else
0 commit comments