diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index da8813a..0d71ed1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,11 +6,15 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: node-version: 20 - - run: npm ci - - run: npm run build + cache: "pnpm" + - run: pnpm install --frozen-lockfile + - run: pnpm build - run: tar -czf build.tar.gz .output - uses: actions/upload-artifact@v4 with: @@ -21,12 +25,20 @@ jobs: runs-on: ubuntu-22.04 needs: build steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - run: pnpm install --frozen-lockfile --prod - uses: actions/download-artifact@v4 with: name: nuxt-build - run: tar -xzf build.tar.gz - - run: npm ci --omit=dev - - run: npm run start & + - run: pnpm start & - run: npx wait-on http://localhost:3000 - run: curl -f http://localhost:3000 || exit 1