diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 374e0942d1..d1a7614194 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -17,12 +17,12 @@ jobs: outputs: branch-name: ${{ steps.set-branch-name.outputs.branch-name }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '22.2.0' cache: 'yarn' - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache with: path: | @@ -33,7 +33,7 @@ jobs: if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn run ci - run: yarn run docs - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: storybooks path: | @@ -41,7 +41,7 @@ jobs: packages/onboarding-ui/storybook-static packages/layout/storybook-static - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: docs path: | @@ -50,7 +50,7 @@ jobs: ref='${{ github.ref }}' echo "::set-output name=branch-name::$(echo "${ref:11}")" id: set-branch-name - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: build path: packages/**/dist/* @@ -61,23 +61,23 @@ jobs: needs: - build-and-test steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: '22.2.0' registry-url: 'https://registry.npmjs.org' scope: '@rocket.chat' cache: 'yarn' - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache with: path: | **/node_modules .yarn/cache key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: build path: packages @@ -116,12 +116,12 @@ jobs: - uses: actions/checkout@v4 with: ref: gh-pages - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: storybooks path: packages - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: docs path: . @@ -131,7 +131,7 @@ jobs: mv -v "packages/onboarding-ui/storybook-static" "onboarding-ui/${{ needs.build-and-test.outputs.branch-name }}" mv -v "packages/layout/storybook-static" "layout/${{ needs.build-and-test.outputs.branch-name }}" rm -rf packages - - uses: crazy-max/ghaction-github-pages@v2 + - uses: crazy-max/ghaction-github-pages@v4 with: target_branch: gh-pages build_dir: . diff --git a/.github/workflows/ci-pr-closed.yml b/.github/workflows/ci-pr-closed.yml index fdd490d85e..fe321944b7 100644 --- a/.github/workflows/ci-pr-closed.yml +++ b/.github/workflows/ci-pr-closed.yml @@ -10,11 +10,11 @@ jobs: name: 'Delete Storybook for PR #${{ github.event.number }}' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: gh-pages - run: rm -rf "fuselage/${{ github.event.number }}" "layout/${{ github.event.number }}" "onboarding-ui/${{ github.event.number }}" - - uses: crazy-max/ghaction-github-pages@v2 + - uses: crazy-max/ghaction-github-pages@v4 with: target_branch: gh-pages build_dir: . diff --git a/.github/workflows/ci-pr-opened.yml b/.github/workflows/ci-pr-opened.yml index a0c1841106..bcacb1914c 100644 --- a/.github/workflows/ci-pr-opened.yml +++ b/.github/workflows/ci-pr-opened.yml @@ -15,7 +15,7 @@ jobs: pr-number: ${{ steps.set-pr-number.outputs.pr-number }} steps: - id: set-pr-number - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7.0.1 with: script: | var artifacts = await github.actions.listWorkflowRunArtifacts({ @@ -37,7 +37,7 @@ jobs: const prNumber = /^storybooks-(\d+)$/.exec(matchArtifact.name)[1]; console.log(`::set-output name=pr-number::${ prNumber }`); - run: unzip storybooks.zip - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: storybooks path: | @@ -53,10 +53,10 @@ jobs: name: github-pages url: 'https://rocketchat.github.io/fuselage/fuselage/${{ needs.download-artifact.outputs.pr-number }}' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: gh-pages - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: name: storybooks path: packages @@ -66,7 +66,7 @@ jobs: mv -v packages/onboarding-ui/storybook-static "onboarding-ui/${{ needs.download-artifact.outputs.pr-number }}" mv -v packages/layout/storybook-static "layout/${{ needs.download-artifact.outputs.pr-number }}" rm -rf packages - - uses: crazy-max/ghaction-github-pages@v2 + - uses: crazy-max/ghaction-github-pages@v4 with: target_branch: gh-pages build_dir: . diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 2c3c68ffdb..b1f1005169 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -19,12 +19,12 @@ jobs: TURBO_TEAM: ${{ secrets.TURBO_TEAM }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '22.2.0' cache: 'yarn' - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache with: path: | @@ -33,7 +33,7 @@ jobs: key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - name: Turbo Cache id: turbo-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .turbo key: turbo-${{ runner.os }}-${{ github.job }} @@ -42,7 +42,7 @@ jobs: - run: yarn if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn run ci - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: 'storybooks-${{ github.event.number }}' path: | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d27f46ed3b..9134c3f9f9 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,18 +24,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} queries: +security-and-quality - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: '/language:${{ matrix.language }}' diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index bd437cc13a..06aa8ec78d 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -7,6 +7,6 @@ jobs: check: runs-on: ubuntu-latest steps: - - uses: thehanimo/pr-title-checker@v1.3.4 + - uses: thehanimo/pr-title-checker@v1.4.3 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}