Skip to content

fix: update node version #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 15 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,16 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Cache pnpm modules
uses: actions/cache@v2
- uses: pnpm/action-setup@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
version: 10
run_install: true

- uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 9
run_install: true
node-version: '22'
cache: 'pnpm'

- name: Build client
working-directory: packages/client/
Expand All @@ -52,7 +45,7 @@ jobs:

# install app again to respect shamefully hoisted dependencies
- name: Build app
working-directory: packages/app/
working-directory: packages/web/
run: |
pnpm install
pnpm build
Expand Down Expand Up @@ -92,24 +85,17 @@ jobs:
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"

- uses: pnpm/action-setup@v4
with:
version: 10
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-

- uses: pnpm/action-setup@v2
with:
version: 9
run_install: true
cache: 'pnpm'

- name: Build
working-directory: packages/client/
Expand Down
86 changes: 29 additions & 57 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,16 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22'

- name: Cache pnpm modules
uses: actions/cache@v2
- uses: pnpm/action-setup@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
version: 10
run_install: true

- uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 9
run_install: true
node-version: '22'
cache: 'pnpm'

- name: Unit test
run: pnpm run -r test
Expand All @@ -47,31 +40,24 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22'

- name: Cache pnpm modules
uses: actions/cache@v2
- uses: pnpm/action-setup@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
version: 10
run_install: true

- uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 9
run_install: true
node-version: '22'
cache: 'pnpm'

- name: Build client
working-directory: packages/client/
run: pnpm build

# install app again to respect shamefully hoisted dependencies
- name: Install app
working-directory: packages/app/
working-directory: packages/web/
run: pnpm install

- name: Typecheck
Expand All @@ -86,23 +72,16 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22'

- name: Cache pnpm modules
uses: actions/cache@v2
- uses: pnpm/action-setup@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
version: 10
run_install: true

- uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 9
run_install: true
node-version: '22'
cache: 'pnpm'

# needed to prepare the auto-generated files for the client package
- name: Build client
Expand All @@ -121,23 +100,16 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22'

- name: Cache pnpm modules
uses: actions/cache@v2
- uses: pnpm/action-setup@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
version: 10
run_install: true

- uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 9
run_install: true
node-version: '22'
cache: 'pnpm'

- name: Check format
run: pnpm run format:check
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine as overmind
FROM node:22.17.1-alpine AS overmind
WORKDIR /app
RUN apk add --update curl gzip
RUN curl https://github.com/DarthSim/overmind/releases/download/v2.4.0/overmind-v2.4.0-linux-amd64.gz -L -o overmind.gz
RUN gunzip overmind.gz
RUN chmod +x overmind

FROM node:18-alpine
FROM node:22.17.1-alpine
ENV NODE_ENV=production
ENV DATA_PATH=/app/data
RUN apk --no-cache add ca-certificates tmux
Expand All @@ -27,4 +27,4 @@ RUN mkdir -p /static
ENV NUXT_PUBLIC_API_CLIENT_BASE_URL=/api
COPY ./packages/app/.output .output

RUN chown -R node:node /app
RUN chown -R node:node /app
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ pnpm i
cp .env.example .env

# start the server
pnpm start
pnpm run dev
```
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
# app:
# build: .
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@
"scripts": {
"format:check": "prettier --check .",
"format:fix": "prettier --write .",
"start": "pnpm --parallel start"
"dev": "pnpm --parallel dev"
},
"devDependencies": {
"prettier": "^2.5.1"
},
"engines": {
"node": ">=16",
"pnpm": "9"
"node": ">=22",
"pnpm": "10"
},
"pnpm": {
"overrides": {
"ufo": "^1.3.1",
"nuxt": "3.7.4"
}
"overrides": {},
"ignoredBuiltDependencies": [
"@parcel/watcher",
"esbuild",
"ngrok",
"vue-demi"
]
}
}
32 changes: 0 additions & 32 deletions packages/app/package.json

This file was deleted.

49 changes: 0 additions & 49 deletions packages/app/pages/customers/index.vue

This file was deleted.

Loading
Loading