From 19e241e63bc4f7539cf14591dda933bf28d8b8bc Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Wed, 30 Sep 2026 17:17:34 +0200 Subject: [PATCH] Remove legacy inline frontend build workflow The install job saves node_modules to actions/cache for the lint and check-types jobs. Since GitHub's read-only cache for untrusted triggers (2026-06-26), pull_request_target runs cannot save, so those jobs start with nothing installed and fail on every PR. The reusable packaged workflow in studio-frontend-build.yml replaces it (see #40). --- .github/workflows/studio-frontend-build.yaml | 149 ------------------- 1 file changed, 149 deletions(-) delete mode 100644 .github/workflows/studio-frontend-build.yaml diff --git a/.github/workflows/studio-frontend-build.yaml b/.github/workflows/studio-frontend-build.yaml deleted file mode 100644 index 66ba09a..0000000 --- a/.github/workflows/studio-frontend-build.yaml +++ /dev/null @@ -1,149 +0,0 @@ -name: "Studio Frontend Build" - -on: - push: - paths: - - "assets/**" - pull_request_target: - paths: - - "assets/**" - workflow_dispatch: - -env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - -permissions: - contents: read - -jobs: - install: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ env.BRANCH_NAME }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - - name: Cache npm dependencies - uses: actions/cache@v4 - with: - path: ./assets/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Install dependencies - working-directory: ./assets - run: npm ci - - - lint: - needs: install - runs-on: ubuntu-latest - - permissions: - contents: write - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ env.BRANCH_NAME }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - - name: Cache npm dependencies - uses: actions/cache@v4 - with: - path: ./assets/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Run code linting - working-directory: ./assets - run: npm run lint-fix - - - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: Apply eslint-fixer changes - - check-types: - needs: install - runs-on: ubuntu-latest - - permissions: - contents: write - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ env.BRANCH_NAME }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - - name: Cache npm dependencies - uses: actions/cache@v4 - with: - path: ./assets/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Run type checking - working-directory: ./assets - run: npm run check-types - - build: - needs: - - lint - - check-types - runs-on: ubuntu-latest - - permissions: - contents: write - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ env.BRANCH_NAME }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - - name: Cache npm dependencies - uses: actions/cache@v4 - with: - path: ./assets/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Run production build - working-directory: ./assets - run: npm run build - - - uses: stefanzweifel/git-auto-commit-action@v5 - with: - file_pattern: './public/' - commit_message: Automatic frontend build