Skip to content

Commit 4cda909

Browse files
authored
Merge pull request #2 from thirdweb-dev/eiman/action-sha-commits
fix: use pnpm version from package.json packageManager field
2 parents 798e644 + 7402cb1 commit 4cda909

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424

2525
- name: Setup pnpm
2626
uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
27-
with:
28-
version: 8
27+
# Version is automatically read from package.json packageManager field
2928

3029
- name: Get pnpm store directory
3130
id: pnpm-cache
@@ -65,7 +64,14 @@ jobs:
6564
# Check PHP syntax
6665
if command -v php &> /dev/null; then
6766
echo "Checking PHP syntax..."
68-
find . -name "*.php" -not -path "./vendor/*" -not -path "./node_modules/*" -exec php -l {} \; | grep -v "No syntax errors"
67+
ERRORS=$(find . -name "*.php" -not -path "./vendor/*" -not -path "./node_modules/*" -exec php -l {} \; 2>&1 | grep -v "No syntax errors" || true)
68+
if [ -n "$ERRORS" ]; then
69+
echo "PHP syntax errors found:"
70+
echo "$ERRORS"
71+
exit 1
72+
else
73+
echo "✅ All PHP files have valid syntax"
74+
fi
6975
else
7076
echo "PHP not installed, skipping syntax check"
7177
fi
@@ -81,7 +87,7 @@ jobs:
8187
echo "- \`build/index.tsx.asset.php\`" >> $GITHUB_STEP_SUMMARY
8288
8389
- name: Upload build artifacts
84-
uses: actions/upload-artifact@c24449f33cd45d4826c6702db7e49f7cdb9b551d # v3.2.1-node20
90+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8591
with:
8692
name: build-artifacts
8793
path: build/

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131

3232
- name: Setup pnpm
3333
uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
34-
with:
35-
version: 8
34+
# Version is automatically read from package.json packageManager field
3635

3736
- name: Install dependencies
3837
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)