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",