From 7da7aec886e0a5d7ed405e8c0469da1c3727f6de Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Thu, 14 Nov 2024 16:52:42 +0100 Subject: [PATCH 1/4] ci: [ci/cd] - related #388 : upgrade chromatic workflow (node 20, upgrade some actions versions) --- .github/workflows/chromatic.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 31dafdf9..890a7a8b 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -20,14 +20,14 @@ jobs: # Job steps steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup node version - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Setup pnpm uses: pnpm/action-setup@v4 From a295c83521a886959a9bfae785122d9642674fed Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Thu, 14 Nov 2024 17:20:51 +0100 Subject: [PATCH 2/4] ci: [github-workflows] - related #388 : upgrade ci workflows (node 20, upgrade some actions versions) --- .github/workflows/chromatic.yml | 2 +- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 890a7a8b..4c163391 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -42,7 +42,7 @@ jobs: # 👇 Adds Chromatic as a step in the workflow - name: Publish to Chromatic - uses: chromaui/action@v1 + uses: chromaui/action@latest # Chromatic GitHub Action options with: # 👇 Chromatic projectToken, refer to the manage page to obtain it. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cf5cd9f..2ac277c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,11 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node: [18] + node: [20] steps: - name: Checkout 🛎 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -21,12 +21,12 @@ jobs: version: 9.1.2 - name: Setup node env 🏗 - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - name: Cache ~/.pnpm-store 📦 - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-pnpm-store with: From 19a46c27b4f37d27c58130b98f2b51d57f3a2fb3 Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Thu, 14 Nov 2024 17:38:34 +0100 Subject: [PATCH 3/4] ci: [github-workflows] - related #388 - chromatic workflow : configure checkout action with github head ref --- .github/workflows/chromatic.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 4c163391..8e7d7c86 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -23,6 +23,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} - name: Setup node version uses: actions/setup-node@v4 From 8d672b58e6682741957a2c6f38c263f28a50bb72 Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Thu, 14 Nov 2024 18:03:53 +0100 Subject: [PATCH 4/4] ci: [github-workflows] - related #388 - chromatic workflow : undo checkout action config --- .github/workflows/chromatic.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 8e7d7c86..4c163391 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -23,7 +23,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} - name: Setup node version uses: actions/setup-node@v4