From fe7c3996336d0e60cbd5da7bde53919b610c7ec9 Mon Sep 17 00:00:00 2001 From: Valentin Hervieu Date: Tue, 25 Feb 2025 12:19:46 +0100 Subject: [PATCH] chore: update CI actions (#591) --- .github/workflows/quality-gate.yml | 14 +++++++------- .github/workflows/release.yml | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml index 56a50ca..83df2d2 100644 --- a/.github/workflows/quality-gate.yml +++ b/.github/workflows/quality-gate.yml @@ -11,17 +11,17 @@ jobs: quality-gate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Prepare repository run: git fetch --unshallow --tags - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20.x - name: Cache node modules - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: node_modules key: yarn-deps-${{ hashFiles('yarn.lock') }} @@ -32,7 +32,7 @@ jobs: - name: Create Build run: yarn build - name: Archive build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist path: | @@ -45,7 +45,7 @@ jobs: run: yarn unit - name: Cypress run - uses: cypress-io/github-action@v5.0.5 + uses: cypress-io/github-action@v6 with: start: yarn start:ci record: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e88841..d752e59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,18 +7,18 @@ jobs: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && github.repository == 'ValentinH/react-easy-crop'" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Prepare repository run: git fetch --unshallow --tags - name: Use Node.js 20.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: 20.x - name: Cache node modules - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: node_modules key: yarn-deps-${{ hashFiles('yarn.lock') }}