diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 513a5f5..3f3a23b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,8 +44,5 @@ jobs: cache: 'npm' - run: npm install - - name: Add next-ws plugin - run: npx next-ws-cli@latest patch - - name: Build production bundle - run: npm run build + run: npm run build:ci diff --git a/README.md b/README.md index f91d8a2..b88370e 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ An explanation of the `package.json` scripts. - **`start`** Launch the app in production mode - **`dev`** Launch the app in development mode - **`build`** Create a production build +- **`build:ci`** Create a production build for CI environment - **`lint`** Run ESLint ## LICENSE diff --git a/package.json b/package.json index 3a8317e..e888d06 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "next dev -p 3300", "build": "next build", + "build:ci": "npx next-ws-cli@latest patch && npm run build", "start": "next start -p 3300", "lint": "eslint . --ext .ts,.tsx -c .eslintrc.json --fix" },