Skip to content

Commit

Permalink
ci: Add build:ci command for ci environment
Browse files Browse the repository at this point in the history
  • Loading branch information
NriotHrreion committed Aug 9, 2024
1 parent 2375b22 commit ad31683
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit ad31683

Please sign in to comment.