Skip to content

Commit

Permalink
fix: update build prod command
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 committed Dec 12, 2023
1 parent 6a6958f commit 45635ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cypress-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
with:
fetch-depth: 0
token: ${{ secrets.AUTO_RELEASE_PAT }}
- name: Set up Node.js
Expand All @@ -22,7 +22,7 @@ jobs:

- name: Build (adjust the command as per your project)
run: npm run build:prod

- name: Run (adjust the command as per your project)
run: npm run serve

Expand All @@ -33,6 +33,6 @@ jobs:
- name: Run Cypress tests
run: npm run cy:run --headless

- name: Stop server (adjust the command as per your project)
run: kill $(lsof -t -i:9000) || true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prod:start": "webpack serve --config webpack.dev.js",
"build:netlify": "webpack --config webpack.prod.js --env netlifyHosted",
"build:test": "cd tests && npx rescript build -with-deps",
"build:prod": "npm run setup-env && cp env-config.js ./public/hyperswitch && APP_VERSION=$npm_package_version && webpack --config webpack.prod.js",
"build:prod": "npm run re:clean && npm run re:build && npm run setup-env && cp env-config.js ./public/hyperswitch && APP_VERSION=$npm_package_version && webpack --config webpack.prod.js",
"re:build": "rescript",
"re:clean": "rescript clean",
"re:start": "rescript build -w",
Expand Down

0 comments on commit 45635ae

Please sign in to comment.