Skip to content

Commit

Permalink
remove useless cache step
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 24, 2024
1 parent fa91452 commit 3b945f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,14 @@ jobs:
branch-name: ${{ steps.set-branch-name.outputs.branch-name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
id: setup-node
with:
node-version: "22.2.0"
cache: "yarn"
- uses: rharkor/[email protected]
- uses: actions/cache@v3
id: yarn-cache
with:
path: |
**/node_modules
.yarn/cache
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
- run: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true'
if: steps.setup-node.outputs.cache-hit != 'true'
- run: yarn run ci
- run: yarn run docs
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -65,25 +59,19 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
id: setup-node
with:
node-version: "22.2.0"
registry-url: "https://registry.npmjs.org"
scope: "@rocket.chat"
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@v3
with:
name: build
path: packages
- run: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true'
if: steps.setup-node.outputs.cache-hit != 'true'

- name: Create Release Pull Request
id: changesets
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
id: setup-node
with:
node-version: "22.2.0"
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
Expand All @@ -41,7 +35,7 @@ jobs:
restore-keys: |
turbo-${{ runner.os }}-
- run: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true'
if: steps.setup-node.outputs.cache-hit != 'true'
- run: yarn run ci
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 3b945f9

Please sign in to comment.