Skip to content

Commit

Permalink
fix: 🐛 undo
Browse files Browse the repository at this point in the history
  • Loading branch information
DhariniJeeva committed May 16, 2024
1 parent 7bc7c11 commit 00ec365
Showing 1 changed file with 7 additions and 35 deletions.
42 changes: 7 additions & 35 deletions .github/workflows/monorepo-validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Enable corepack
run: corepack enable

- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: node-modules-cache
with:
path: "**/.yarn"
key: node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-modules-
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
# cache: yarn

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: |
dir="$(yarn config get cacheFolder)"
mkdir -p "$dir"
echo "CACHE_DIR_YARN=$dir"
echo "CACHE_DIR_YARN=$dir" >> "$GITHUB_OUTPUT"
# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: "**/.yarn"
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
save-always: true
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
restore-keys: yarn-${{ runner.os }}-
- run: echo "${{ steps.yarn-cache-dir-path.outputs.CACHE_DIR_YARN }}"

# - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
# id: node-modules-cache
# with:
# path: "**/node_modules"
# key: node-modules-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# node-modules-

- run: yarn install

compliance:
Expand Down

0 comments on commit 00ec365

Please sign in to comment.