name: CI on: push: branches: - main pull_request: branches: - main jobs: build: name: Type-check & Build runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: "22" - name: Install dependencies run: npm ci - name: Type-check and build run: npm run build - name: Upload dist if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: christopherhx/gitea-upload-artifact@v4 with: name: dist path: dist/ overwrite: true