Skip to content

Commit

Permalink
chore: bump upload-artifact@v3 (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 24, 2024
1 parent d89bf92 commit 20af1c8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 28 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/cache@v3
id: yarn-cache
with:
path: |
Expand All @@ -40,15 +34,15 @@ 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: |
packages/fuselage/storybook-static
packages/onboarding-ui/storybook-static
packages/layout/storybook-static
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: docs
path: |
Expand All @@ -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/*
Expand All @@ -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
Expand Down Expand Up @@ -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: .
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ github.job }}
Expand All @@ -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: |
Expand Down

0 comments on commit 20af1c8

Please sign in to comment.