From f07e44016a3913ef4f94659216508700d3e8172b Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 3 Feb 2026 01:35:47 +0100 Subject: [PATCH] ci: consolidate workflows into pipeline.yml to fix double triggers --- .gitea/workflows/ci.yml | 39 ---------------- .../workflows/{release.yml => pipeline.yml} | 44 ++++++++++++++++++- 2 files changed, 43 insertions(+), 40 deletions(-) delete mode 100644 .gitea/workflows/ci.yml rename .gitea/workflows/{release.yml => pipeline.yml} (50%) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml deleted file mode 100644 index 2b02ab6..0000000 --- a/.gitea/workflows/ci.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Code Quality - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - lint-and-build: - runs-on: docker - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node_version: 20 - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Lint - run: pnpm lint - - - name: Test - run: pnpm test - - - name: Build - run: pnpm build diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/pipeline.yml similarity index 50% rename from .gitea/workflows/release.yml rename to .gitea/workflows/pipeline.yml index 2b61720..399eec5 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/pipeline.yml @@ -1,4 +1,4 @@ -name: Release Packages +name: Monorepo Pipeline on: push: @@ -6,9 +6,51 @@ on: - main tags: - 'v*' + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: + qa: + name: ๐Ÿงช Quality Assurance + runs-on: docker + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node_version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Lint + run: pnpm lint + + - name: Test + run: pnpm test + + - name: Build + run: pnpm build + release: + name: ๐Ÿš€ Release + needs: qa + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) runs-on: docker env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }}