Compare commits

..

8 commits

Author SHA1 Message Date
ad840a31c1
Merge branch 'actions'
Some checks failed
Audit / Audit (push) Failing after 10s
Push / Lint (push) Successful in 26s
Push / Build (push) Successful in 36s
2025-02-23 08:20:06 -05:00
7781b4b57c
Clarify artifact is a .zip
Some checks failed
Audit / Audit (push) Failing after 10s
Push / Lint (push) Successful in 24s
Push / Build (push) Successful in 36s
Audit / Audit (pull_request) Failing after 10s
2025-02-23 08:17:17 -05:00
aa14d0a6b5
Fix some remaining pnpm references
Some checks failed
Audit / Audit (push) Failing after 11s
Push / Lint (push) Successful in 24s
Push / Build (push) Successful in 34s
Audit / Audit (pull_request) Failing after 11s
2025-02-23 08:14:35 -05:00
c816032f54
Cache npm dependencies
Some checks failed
Audit / Audit (push) Failing after 10s
Push / Lint (push) Successful in 27s
Push / Build (push) Failing after 18s
Audit / Audit (pull_request) Failing after 10s
2025-02-23 08:10:31 -05:00
429b37a2e2
Switch to npm
Remember when I switched to pnpm, like, 1 commit ago? Yeah I misread the CI log, it actually need to use npm.
2025-02-23 08:09:16 -05:00
50ff732413
Switch to pnpm
Some checks failed
Audit / Audit (push) Failing after 9s
Push / Lint (push) Failing after 8s
Push / Build (push) Failing after 8s
TBH I don't really care between pnpm and yarn, but the new runner image only has pnpm so here I go
2025-02-23 07:55:27 -05:00
6d49de0421
Save CI build
Some checks failed
Audit / Audit (push) Failing after 9s
Push / Lint (push) Failing after 8s
Push / Build (push) Failing after 8s
2025-02-23 07:43:22 -05:00
5ad0c98252
Switch to new runner image 2025-02-23 07:38:10 -05:00
7 changed files with 4930 additions and 2314 deletions

View file

@ -10,11 +10,13 @@ name: Audit
jobs: jobs:
build: build:
name: Audit name: Audit
runs-on: docker runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with:
cache: npm
- name: Audit - name: Audit
run: yarn audit run: npm audit

View file

@ -6,30 +6,39 @@ name: Push
jobs: jobs:
lint: lint:
name: Lint name: Lint
runs-on: docker runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with:
cache: npm
- name: Install dependencies - name: Install dependencies
run: yarn install run: npm install
- name: Check code formatting - name: Check code formatting
run: yarn lint:prettier run: npm run lint:prettier
- name: Check code quality - name: Check code quality
run: yarn lint:eslint run: npm run lint:eslint
- name: Check types - name: Check types
run: yarn lint:tsc run: npm run lint:tsc
build: build:
name: Build name: Build
runs-on: docker runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with:
cache: npm
- name: Install dependencies - name: Install dependencies
run: yarn install run: npm install
- name: Build - name: Build
run: yarn build run: npm run build
- name: Save build
uses: forgejo/upload-artifact@v4
with:
name: webroot.zip
path: dist/prod

View file

@ -1 +1,2 @@
public/ public/
pnpm-lock.yaml

4905
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -6,10 +6,10 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "bash render.bash", "build": "bash render.bash",
"build:targets": "yarn build:client && yarn build:server", "build:targets": "npm run build:client && npm run build:server",
"build:client": "tsc -b && vite build --outDir dist/client", "build:client": "tsc -b && vite build --outDir dist/client",
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx", "build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
"lint": "yarn lint:tsc && yarn lint:eslint && yarn lint:prettier", "lint": "npm run lint:tsc && npm run lint:eslint && npm run lint:prettier",
"lint:prettier": "prettier --check .", "lint:prettier": "prettier --check .",
"lint:eslint": "eslint .", "lint:eslint": "eslint .",
"lint:tsc": "tsc -b --noEmit", "lint:tsc": "tsc -b --noEmit",

View file

@ -4,7 +4,7 @@ set -o nounset
set -o pipefail set -o pipefail
set -o xtrace set -o xtrace
yarn "build:targets" npm run "build:targets"
PROD='dist/prod' PROD='dist/prod'
if [[ -d "$PROD" ]]; then if [[ -d "$PROD" ]]; then

2301
yarn.lock

File diff suppressed because it is too large Load diff