Skip to content

Commit

Permalink
fix: cache pnpm missing (#171)
Browse files Browse the repository at this point in the history
* test: cache pnpm

* test: cache pnpm

* feat: test

* feat: test

* feat: test

* feat: test

* feat: test

* feat: test

* test: cache fe

* test: cache fe

* feat: test setup gcloud

* test: cache pnpm with setup gcloud

* fix(frontend): cache pnpm and used gcloud in runner

Changelog: fix

* feat: cache pnpm

---------

Co-authored-by: dimzrio <[email protected]>
  • Loading branch information
dmzrio and dimzrio authored Nov 7, 2024
1 parent c47ca56 commit 5ffe7bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit 5ffe7bc

Please sign in to comment.