From 84a7b9bdd70ce6570a060878362f91deae6b0fe5 Mon Sep 17 00:00:00 2001 From: Tane Morgan <464864+tanem@users.noreply.github.com> Date: Tue, 17 Feb 2026 05:44:45 +1300 Subject: [PATCH] Optimise workflows --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/release.yml | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0df4f5cc..6831dd31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: ci: runs-on: ubuntu-latest @@ -19,6 +22,7 @@ jobs: with: node-version-file: '.nvmrc' check-latest: true + cache: 'npm' - run: npm ci - run: npx --no-install playwright install --with-deps - run: npm run test:coverage @@ -29,3 +33,5 @@ jobs: name: playwright-report path: playwright-report - uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f977db2..4a007780 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,13 +4,10 @@ on: schedule: - cron: '0 9 * * 1' # Every Monday at 9:00 AM UTC workflow_dispatch: - branches: - - master permissions: contents: write id-token: write - packages: write jobs: release: @@ -29,6 +26,7 @@ jobs: with: node-version-file: '.nvmrc' check-latest: true + cache: 'npm' registry-url: 'https://registry.npmjs.org' - name: Configure git @@ -42,9 +40,6 @@ jobs: - name: Install Playwright browsers run: npx --no-install playwright install --with-deps - - name: Build - run: npm run build - - name: Release run: npm run release env: