From 99cc78a5f01c650dd04ea5ea507548c05a08b65b Mon Sep 17 00:00:00 2001 From: Daniel Adu-Gyan Date: Thu, 19 Oct 2023 12:29:51 +0200 Subject: [PATCH] Change node to latest LTS version in CI --- .github/workflows/node.js.yml | 8 ++------ package.json | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index fad11506f..c7b956908 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -13,19 +13,15 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x] - steps: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2 with: version: 8 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js latest LTS uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: lts/* cache: "pnpm" - run: pnpm i - run: pnpm run build diff --git a/package.json b/package.json index 9faa9df18..2b54ffbb4 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "dev": "vite dev", "dev-setup": "vite-node dev/setup.ts", "build": "vite build", + "prepare": "svelte-kit sync && prisma generate", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",