chore: migrate to pnpm for package management and update CI configuration

- Replaced npm with pnpm in the CI configuration and Dockerfile for improved dependency management.
- Updated package.json to specify pnpm as the package manager.
- Modified installation instructions in README.md to reflect the use of pnpm.
- Enhanced the build process in the Dockerfile to utilize pnpm for installing dependencies and building the application.
This commit is contained in:
AmirReza Jamali
2026-04-25 15:20:23 +03:30
parent 9b3bd3d1f5
commit 84d34866be
5 changed files with 41 additions and 27 deletions
+11 -9
View File
@@ -10,7 +10,7 @@ steps:
image: docker-mirror.ravanertebat.ir/hub/node:22.14
environment:
NPM_CONFIG_REGISTRY: https://mirror.ravanertebat.ir/repository/npm-proxy/
PNPM_CONFIG_REGISTRY: https://mirror.ravanertebat.ir/repository/npm-proxy/
#NPM_CONFIG_STRICT_SSL: false
#NPM_CONFIG_AUDIT: false
commands:
@@ -28,15 +28,17 @@ steps:
- mkdir -p ./artifacts/node
- rm -rf .git
- npx npm config list
- npx npm install --loglevel=verbose
- corepack enable
- corepack prepare pnpm@10.18.0 --activate
- pnpm config list
- rm -rf dist
- npm ci --loglevel=verbose
- npm run test:e2e --loglevel=verbose
- npm run build
- cp .next/standalone ./artifacts/node/standalone
- cp .next/static ./artifacts/node/static
- cp ./public ./artifacts/node/public
- pnpm install --frozen-lockfile --reporter=append-only
- pnpm run test:e2e
- pnpm run build
- cp -R .next/standalone/. ./artifacts/node/
- mkdir -p ./artifacts/node/.next
- cp -R .next/static ./artifacts/node/.next/static
- cp -R ./public ./artifacts/node/public
- ls -ltrh ./artifacts/node
- name: build panel