chore(deps): updated build script to use Node.js 21 and npm ci for better dependency management

This commit is contained in:
Bram Suurd 2024-09-17 11:57:39 +02:00
parent d487b35216
commit 9603c258e4
4 changed files with 5046 additions and 7 deletions

View File

@ -6,16 +6,25 @@ on:
- main
jobs:
build:
lint:
runs-on: ubuntu-latest
container: node:20
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '21'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: npm install
run: npm ci --ignore-scripts
- name: Build
run: npm run build

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}

5028
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,6 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^9.9.0",
"eslint-config-next": "14.2.11",
"postcss": "^8",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.6.5",