Skip to content

Commit

Permalink
chore: update CI actions (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinH authored Feb 25, 2025
1 parent d95e0cc commit fe7c399
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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: |
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down

0 comments on commit fe7c399

Please sign in to comment.