mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-30 15:28:39 +01:00
Refactor: reorder steps in nuxthub.yml for improved clarity and efficiency
This commit is contained in:
24
.github/workflows/nuxthub.yml
vendored
24
.github/workflows/nuxthub.yml
vendored
@@ -16,33 +16,27 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install build tools
|
- name: Install Node.js
|
||||||
run: sudo apt-get update && sudo apt-get install -y build-essential
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
|
- name: Install build tools
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y build-essential
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --unsafe-perm
|
run: pnpm install --unsafe-perm
|
||||||
|
|
||||||
- name: Rebuild better-sqlite3 bindings
|
- name: Rebuild better-sqlite3 bindings
|
||||||
run: pnpm rebuild better-sqlite3
|
run: pnpm rebuild better-sqlite3
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm build
|
|
||||||
|
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
cache: 'pnpm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Deploy to NuxtHub
|
- name: Deploy to NuxtHub
|
||||||
uses: nuxt-hub/action@v1
|
uses: nuxt-hub/action@v1
|
||||||
id: deploy
|
id: deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user