Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: 🚀 CD

on:
workflow_run:
workflows: ["🧪 CI"]
push:
branches: [master]
types:
- completed

permissions:
contents: write # Needed for creating commits and tags
Expand All @@ -15,7 +12,7 @@ jobs:
release:
name: 🚀 Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && !contains(github.event.workflow_run.head_commit.message, 'chore(release):') }}
if: ${{ !contains(github.event.head_commit.message, 'chore(release):') }}
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches: [master, dev]
push:
branches: [master, dev]
branches: [dev]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
Expand Down Expand Up @@ -40,7 +40,11 @@ jobs:

- name: 🔍 Run oxlint on affected projects
run: |
BASE=$(git merge-base HEAD origin/dev)
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
BASE="origin/${{ github.base_ref }}"
else
BASE="HEAD~1"
fi
pnpm nx affected --target=lint --base=$BASE --head=HEAD --parallel=3

- name: 🎨 Check code formatting with dprint
Expand Down Expand Up @@ -72,7 +76,11 @@ jobs:

- name: 🔍 Type check affected projects
run: |
BASE=$(git merge-base HEAD origin/dev)
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
BASE="origin/${{ github.base_ref }}"
else
BASE="HEAD~1"
fi
pnpm nx affected --target=typecheck --base=$BASE --head=HEAD --parallel=3 --verbose

# Build affected projects
Expand Down