Linux: Fix build to use pnpm version from lock file

Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-09-10 08:26:14 -04:00
committed by GitHub
co-authored by ayumi-signal
parent 1fe43d231e
commit 9b875ea854
3 changed files with 18 additions and 6 deletions
@@ -100,6 +100,12 @@ jobs:
NODE_VERSION=$(cat .nvmrc)
echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
- name: Get pnpm version for docker build arg
id: pnpm_version
run: |
PNPM_VERSION=$(grep -A 2 '^\s*pnpm:' pnpm-lock.yaml | grep 'version:' | awk '{print $2}')
echo "pnpm_version=$PNPM_VERSION" >> $GITHUB_OUTPUT
- name: Set up docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
- name: Build docker image
@@ -115,6 +121,7 @@ jobs:
build-args: |
SOURCE_DATE_EPOCH=1
NODE_VERSION=${{ steps.node_version.outputs.version }}
PNPM_VERSION=${{ steps.pnpm_version.outputs.pnpm_version }}
cache-from: type=gha
cache-to: type=gha,mode=max