replace npm by pnpm for CI
This commit is contained in:
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
@@ -6,11 +6,15 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
cache: "pnpm"
|
||||||
- run: npm run build
|
- run: pnpm install --frozen-lockfile
|
||||||
|
- run: pnpm build
|
||||||
- run: tar -czf build.tar.gz .output
|
- run: tar -czf build.tar.gz .output
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -21,12 +25,20 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
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
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: nuxt-build
|
name: nuxt-build
|
||||||
- run: tar -xzf build.tar.gz
|
- run: tar -xzf build.tar.gz
|
||||||
- run: npm ci --omit=dev
|
- run: pnpm start &
|
||||||
- run: npm run start &
|
|
||||||
- run: npx wait-on http://localhost:3000
|
- run: npx wait-on http://localhost:3000
|
||||||
- run: curl -f http://localhost:3000 || exit 1
|
- run: curl -f http://localhost:3000 || exit 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user