Use pnpm to handle node/pnpm versions in Dockerfile (#10642)

This commit is contained in:
Samuel Newman
2026-05-29 15:40:24 +03:00
committed by GitHub
parent 98f14bab39
commit 806f31dc93
9 changed files with 62 additions and 54 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: 🪛 Setup jq
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: 🪛 Setup jq
@@ -61,7 +61,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: 📷 Check fingerprint and install dependencies
@@ -176,7 +176,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: 🔨 Setup EAS
@@ -323,7 +323,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: 🔨 Setup EAS
+3 -3
View File
@@ -33,7 +33,7 @@ jobs:
check "$f" "$v"
done
# ENV NODE_VERSION=X.Y.Z — Go images that nvm-install Node for the JS build stage
for f in Dockerfile Dockerfile.embedr; do
for f in Dockerfile.embedr; do
v=$(grep -oE 'NODE_VERSION=[0-9]+\.[0-9]+\.[0-9]+' "$f" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | sort -u)
check "$f" "$v"
done
@@ -45,7 +45,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: pnpm install
uses: Wandalen/wretry.action@master
@@ -71,7 +71,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: pnpm install
uses: Wandalen/wretry.action@master
@@ -23,7 +23,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: pnpm install
uses: Wandalen/wretry.action@master
+1 -1
View File
@@ -122,7 +122,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: Install dependencies
+2 -2
View File
@@ -33,7 +33,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: Ensure tracking relevant branches and checkout base
@@ -123,7 +123,7 @@ jobs:
- name: 🔧 Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
cache: pnpm
- name: 📷 Check fingerprint and install dependencies
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
node-version-file: package.json
- name: Reset pnpm-lock.yaml to base
env: