Skip to content

Fix PNPM path in workflow #2

Fix PNPM path in workflow

Fix PNPM path in workflow #2

Workflow file for this run

name: Run Migrations and Update Challenges
on:
push:
branches:
- main
jobs:
run_migrations:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PNPM_HOME: /pnpm
PATH: $/pnpm:${{ env.PATH }}

Check failure on line 17 in .github/workflows/db.yml

View workflow run for this annotation

GitHub Actions / Run Migrations and Update Challenges

Invalid workflow file

The workflow is not valid. .github/workflows/db.yml (Line: 17, Col: 13): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PATH
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
run: corepack enable pnpm
- name: Install Dependencies
run: pnpm install
- name: Run Migrations
run: |
cd packages/db \
npx prisma migrate dev
- name: Update Challenges
run: |
cd packages/db \
npx tsc && node dist/scripts/index.js