chore: scaffold community server discord bot #652
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- name: 🛎️ Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags to ensure the 'main' branch is available | |
- name: Fetch main branch | |
run: git fetch origin main # Explicitly fetch the 'main' branch to ensure it's available | |
- name: 📦 Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: 🧹 Lint Projects | |
# TODO: Restore functionality after pipeline is fixed | |
run: pnpm i; | |
# run: pnpm i; pnpm nx affected -t lint --base=origin/main --head=HEAD --verbose | |
# Use 'origin/main' to reference the exact remote branch | |
- name: 🏗️ Build Affected Projects | |
run: pnpm nx affected -t build --base=origin/main --head=HEAD --verbose | |
# Ensure the base is set to 'origin/main' to avoid any ambiguity about the branch | |
- name: 💰 Profit | |
run: echo 🐞 |