Skip to content

Commit f8800d5

Browse files
committed
ci: add step to update deployAlwaysUpdate packages in preview workflow
1 parent 797459b commit f8800d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/preview.yml

+13
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ jobs:
5252
with:
5353
node-version: 22
5454
cache: "pnpm"
55+
- name: Update deployAlwaysUpdate packages
56+
run: |
57+
if [ -f package.json ]; then
58+
PACKAGES=$(node -e "const pkg = require('./package.json'); if (pkg.deployAlwaysUpdate) console.log(pkg.deployAlwaysUpdate.join(' '))")
59+
if [ ! -z "$PACKAGES" ]; then
60+
echo "Updating packages: $PACKAGES"
61+
pnpm up -L $PACKAGES
62+
else
63+
echo "No deployAlwaysUpdate packages found in package.json"
64+
fi
65+
else
66+
echo "package.json not found"
67+
fi
5568
- name: Install Global Dependencies
5669
run: pnpm add -g vercel
5770
- name: Pull Vercel Environment Information

0 commit comments

Comments
 (0)