Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cache pnpm missing #171

Merged
merged 14 commits into from
Nov 7, 2024
7 changes: 5 additions & 2 deletions frontend/tools/pnpm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
if: "${{ inputs.cache == 'true' }}"
uses: actions/cache@v4
with:
path: ~/.pnpm-store
path: /runner/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
Expand All @@ -43,6 +43,7 @@ runs:
uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm_version }}
dest: /runner/.pnpm-store

- name: Set cache path Next.js
if: "${{ inputs.using_nextjs == 'true' }}"
Expand All @@ -60,7 +61,9 @@ runs:
if: "${{ (inputs.using_nextjs == 'true' && inputs.cache == 'true') }}"
uses: actions/cache@v4
with:
path: ${{ steps.path.outputs.cache-path }}
path: |
${{ github.workspace }}/node_modules
${{ steps.path.outputs.cache-path }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-nextjs-
1 change: 1 addition & 0 deletions infra/tools/gcloud/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ runs:
uses: google-github-actions/setup-gcloud@v2
with:
install_components: ${{ inputs.gcloud_components }}
skip_install: true

- name: Register gcloud as a docker credential helper
if: "${{ inputs.docker_creds == 'true' }}"
Expand Down