Skip to content

Commit

Permalink
Corrige corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Feb 6, 2025
1 parent 4a5122c commit ff58f46
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
outputs:
BASE_TAG: ${{ steps.vars.outputs.BASE_TAG }}
VOLTO_VERSION: ${{ steps.vars.outputs.VOLTO_VERSION }}
STORE_PATH: ${{ steps.vars.outputs.STORE_PATH }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -28,12 +27,10 @@ jobs:
run: |
echo "BASE_TAG=sha-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
python3 -c 'import json; data = json.load(open("./mrs.developer.json")); print("VOLTO_VERSION=" + data["core"].get("tag") or "latest")' >> $GITHUB_OUTPUT
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- name: Test vars
run: |
echo 'BASE_TAG=${{ steps.vars.outputs.BASE_TAG }}'
echo 'VOLTO_VERSION=${{ steps.vars.outputs.VOLTO_VERSION }}'
echo 'STORE_PATH=${{ steps.vars.outputs.STORE_PATH }}'
code-analysis:
runs-on: ubuntu-latest
Expand All @@ -49,7 +46,9 @@ jobs:
node-version: ${{ env.NODE_VERSION }}

- name: Enable corepack
run: corepack enable
run: |
npm i -g corepack@latest
corepack enable
- name: Get pnpm store directory
shell: bash
Expand All @@ -59,7 +58,7 @@ jobs:
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ needs.config.outputs.STORE_PATH }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
Expand Down

0 comments on commit ff58f46

Please # to comment.