Skip to content

Commit cb920e2

Browse files
fix: deploy
1 parent 374940c commit cb920e2

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,41 @@ permissions:
1616

1717
jobs:
1818
build:
19+
name: Code standards & build
1920
runs-on: ubuntu-latest
21+
timeout-minutes: 3
22+
23+
strategy:
24+
matrix:
25+
node-version: [20]
26+
2027
steps:
21-
- name: Checkout your repository using git
28+
- name: "☁️ Checkout repository"
2229
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site
24-
uses: withastro/action@v3
30+
31+
- name: "📦 Install pnpm"
32+
uses: pnpm/action-setup@v4
33+
with:
34+
version: 10.11.1
35+
36+
- name: Use Node.js ${{ matrix.node-version }}
37+
uses: actions/setup-node@v4
2538
with:
26-
path: . # The root location of your Astro project inside the repository. (optional)
27-
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28-
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
39+
node-version: ${{ matrix.node-version }}
40+
cache: "pnpm"
41+
42+
- name: "📦 Install dependencies"
43+
run: pnpm install
44+
45+
- name: "🔎 Lint code"
46+
run: pnpm run lint
47+
48+
- name: "📝 Checking code format"
49+
run: pnpm run format:check
2950

51+
- name: "🚀 Build the project"
52+
run: pnpm run build
53+
3054
deploy:
3155
needs: build
3256
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)