Skip to content

Commit

Permalink
chore: solved yarn cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Apr 12, 2024
1 parent f11c117 commit 4050a1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ runs:
with:
node-version: 18

- name: Set yarn.lock path
id: yarn-hash
run: |
echo "Root path: ${{ inputs.root-path }}"
echo "yarn.lock path: ${{ inputs.root-path }}/yarn.lock"
echo "File exists: $(test -f "${{ inputs.root-path }}/yarn.lock" && echo "yes" || echo "no")"
echo "yarnlock_path=${{ inputs.root-path }}/yarn.lock" >> "$GITHUB_ENV"
- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
${{ inputs.root-path }}/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('${{ inputs.root-path }}/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles(env.yarnlock_path) }}

- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release-ios-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,13 @@ jobs:
with:
root-path: ${{ inputs.root-path }}

- name: Calculate podfile hash
- name: Set podfile path
id: podfile-hash
run: |
echo "Root path: ${{ inputs.root-path }}"
echo "Full path: ${{ inputs.root-path }}/ios/Podfile.lock"
echo "Podfile path: ${{ inputs.root-path }}/ios/Podfile.lock"
echo "File exists: $(test -f "${{ inputs.root-path }}/ios/Podfile.lock" && echo "yes" || echo "no")"
echo "podfile_path=${{ inputs.root-path }}/ios/Podfile.lock" >> "$GITHUB_ENV"
echo "Podfile path: ${{ env.podfile_path }}"
- name: Cache pods
id: pods-cache
Expand Down

0 comments on commit 4050a1b

Please sign in to comment.