From 59e38430729a6de93b2f1f2aef72d7eb9664b7fe Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Thu, 30 Apr 2026 12:27:05 +0200 Subject: [PATCH] chore(ci): bump codecov-action to v6 and read node version from .nvmrc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump codecov/codecov-action v5 → v6 (adds Node 24 support) - Pin Node 24 in size workflow via setup-node + node-version-file: .nvmrc - Drop YARN_IGNORE_ENGINES workaround in size workflow (no longer needed) - Composite setup-node action now reads node-version-file: .nvmrc as single source of truth --- .github/actions/setup-node/action.yml | 8 +------- .github/workflows/ci.yml | 2 +- .github/workflows/size.yml | 4 +++- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index e6d81818e..4c57ede44 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -1,19 +1,13 @@ name: Setup description: Sets up Node and installs dependencies -inputs: - node-version: - description: 'Specify Node version' - required: false - default: '24' - runs: using: 'composite' steps: - name: Setup Node uses: actions/setup-node@v6 with: - node-version: ${{ inputs.node-version }} + node-version-file: '.nvmrc' - name: Set NODE_VERSION env shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 851cda89c..2604cf7c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: run: yarn coverage - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v6 with: verbose: true token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index a008ae2ee..6f593d79c 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -16,10 +16,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version-file: '.nvmrc' - uses: preactjs/compressed-size-action@v2 env: NODE_OPTIONS: --max_old_space_size=4096 - YARN_IGNORE_ENGINES: 'true' # skip validation for node20 requirement with: repo-token: '${{ secrets.GITHUB_TOKEN }}' pattern: './dist/**/*.{?(c|m)js,css,json}'