From 41a89c965cee93deabfd5b922cde55db525b841c Mon Sep 17 00:00:00 2001 From: Joaquin Bravo Contreras Date: Fri, 28 Jun 2024 17:29:38 -0500 Subject: [PATCH] feat: maybe not loading .env properly on github actions? --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d065438..6826cf6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -122,7 +122,7 @@ jobs: run: npx prisma migrate reset --force - name: create admin user - run: echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node --require tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> $GITHUB_ENV + run: echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node -r dotenv/config -r tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> $GITHUB_ENV - name: Install Playwright run: npm ci && npx playwright install --with-deps @@ -264,7 +264,7 @@ jobs: pm2 save # echo "*** Step: ** Run Playwright tests" - # echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node --require tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> .env + # echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node -r dotenv/config -r tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> .env # npx playwright install --with-deps # npx playwright test