CI fix tentative 5
This commit is contained in:
parent
c463acf045
commit
53cf4eeac1
|
@ -6,12 +6,37 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: docker # ? check what it really means
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [23]
|
||||
|
||||
steps:
|
||||
- name: Checkout git repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Astro build
|
||||
uses: https://github.com/withastro/action@v4
|
||||
- name: "Install pnpm"
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "pnpm"
|
||||
|
||||
- name: "Install dependencies"
|
||||
run: pnpm install
|
||||
|
||||
- name: "Lint code"
|
||||
run: pnpm run lint
|
||||
|
||||
- name: "Checking code format"
|
||||
run: pnpm run format:check
|
||||
|
||||
- name: "Build the project"
|
||||
run: pnpm run build
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"name": "oblog-parallels",
|
||||
"type": "module",
|
||||
"version": "5.2.0",
|
||||
"packageManager": "pnpm@10.11.0",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro check && astro build && pagefind --site dist && cp -r dist/pagefind public/",
|
||||
|
|
Loading…
Reference in a new issue