Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/production-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build the project
run: npm run build
run: MODE=prod npm run build
- name: Deploy to GitHub Packages
run: npm publish
env:
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build the project
run: npm run build
run: MODE=prod npm run build
- name: Deploy to NPM registry
run: npm publish
env:
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build the project
run: npm run build
run: MODE=prod npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
file: 'dist/capture-eye.bundled.js',
format: 'esm',
name: 'CaptureEye',
sourcemap: true,
sourcemap: process.env.MODE !== 'prod',
},
onwarn(warning) {
if (warning.code !== 'THIS_IS_UNDEFINED') {
Expand Down
Loading