From 9bda6ae555840646e3ddf4175c222b1e51c09a70 Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Tue, 16 Dec 2025 15:13:14 +0000 Subject: [PATCH] fix(ci): use pnpm exec for migrate command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Switch from npx to pnpm exec for better env var handling - Add NODE_OPTIONS: --no-deprecation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7439a12..600897e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,10 +129,11 @@ jobs: - name: Setup Database Schema run: | echo "Running migrate:fresh..." - npx payload migrate:fresh --force + pnpm exec payload migrate:fresh --force timeout-minutes: 5 env: CI: true + NODE_OPTIONS: --no-deprecation PAYLOAD_SECRET: test-payload-secret DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test NEXT_PUBLIC_SERVER_URL: https://test.example.com @@ -265,10 +266,11 @@ jobs: - name: Setup Database Schema run: | echo "Running migrate:fresh..." - npx payload migrate:fresh --force + pnpm exec payload migrate:fresh --force timeout-minutes: 5 env: CI: true + NODE_OPTIONS: --no-deprecation PAYLOAD_SECRET: e2e-secret-placeholder DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test NEXT_PUBLIC_SERVER_URL: http://localhost:3001