/ .github / workflows / build.yml
build.yml
 1  name: "Validate & Build"
 2  
 3  on:
 4   workflow_call:
 5  
 6  jobs:
 7   Sanity:
 8    name: Build
 9    runs-on: ubuntu-latest
10  
11    steps:
12     - uses: actions/checkout@v4
13  
14     - name: Install pnpm 📥
15       uses: pnpm/action-setup@v4
16       with:
17        version: latest
18  
19     - name: Install Node.js 📥
20       uses: actions/setup-node@v4
21       with:
22        cache: pnpm
23        node-version: latest
24  
25     - name: Install dependencies 📥
26       run: pnpm install
27  
28     - name: Build
29       run: pnpm run build
30  
31     - name: Upload Build Artifacts
32       uses: actions/upload-artifact@v4
33       with:
34        name: luna-artifacts
35        path: ./dist