From 20af1c82a5cc98aafe2a6e8623593f3164a45e7e Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Mon, 23 Sep 2024 20:08:19 -0300 Subject: [PATCH] chore: bump upload-artifact@v3 (#1448) --- .github/workflows/cd.yml | 41 ++++++++++++++++--------------------- .github/workflows/ci-pr.yml | 12 ++++++----- 2 files changed, 25 insertions(+), 28 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4d02f7b762..f7bf7255d0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -17,19 +17,13 @@ jobs: outputs: branch-name: ${{ steps.set-branch-name.outputs.branch-name }} steps: - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: "22.2.0" - - uses: actions/checkout@v2 - - name: Turbo Cache - id: turbo-cache - uses: actions/cache@v2 - with: - path: .turbo - key: turbo-${{ runner.os }}-${{ github.job }} - restore-keys: | - turbo-${{ runner.os }}- - - uses: actions/cache@v2 + cache: "yarn" + - uses: rharkor/caching-for-turbo@v1.5 + - uses: actions/cache@v3 id: yarn-cache with: path: | @@ -40,7 +34,7 @@ jobs: if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn run ci - run: yarn run docs - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: storybooks path: | @@ -48,7 +42,7 @@ jobs: packages/onboarding-ui/storybook-static packages/layout/storybook-static - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: docs path: | @@ -57,7 +51,7 @@ jobs: ref='${{ github.ref }}' echo "::set-output name=branch-name::$(echo "${ref:11}")" id: set-branch-name - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: build path: packages/**/dist/* @@ -68,22 +62,23 @@ jobs: needs: - build-and-test steps: - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 with: node-version: "22.2.0" registry-url: "https://registry.npmjs.org" scope: "@rocket.chat" - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: actions/cache@v2 + cache: "yarn" + - uses: actions/cache@v3 id: yarn-cache with: path: | **/node_modules .yarn/cache key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: build path: packages @@ -119,15 +114,15 @@ jobs: name: github-pages url: "https://rocketchat.github.io/fuselage/fuselage/${{ needs.build-and-test.outputs.branch-name }}" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: gh-pages - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: storybooks path: packages - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: docs path: . diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 9c9c2930c6..5f295beb06 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -19,20 +19,22 @@ jobs: TURBO_TEAM: ${{ secrets.TURBO_TEAM }} runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 with: node-version: "22.2.0" - - uses: actions/checkout@v2 - - uses: actions/cache@v2 + cache: "yarn" + - uses: actions/cache@v3 id: yarn-cache with: path: | **/node_modules .yarn/cache key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} + - uses: rharkor/caching-for-turbo@v1.5 - name: Turbo Cache id: turbo-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .turbo key: turbo-${{ runner.os }}-${{ github.job }} @@ -41,7 +43,7 @@ jobs: - run: yarn install if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn run ci - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: "storybooks-${{ github.event.number }}" path: |