Add pr package script

This commit is contained in:
jeffvli 2023-01-29 18:27:14 -08:00
parent b49ba2d04c
commit be39c2bc1f
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ jobs:
command: |
npm run postinstall
npm run build
npm exec electron-builder -- --publish never --win --mac --linux
npm run package:pr
on_retry_command: npm cache clean --force
- uses: actions/upload-artifact@v3

View File

@ -11,6 +11,7 @@
"lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx",
"lint:styles": "npx stylelint **/*.tsx",
"package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never",
"package:pr": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never --win --mac --linux",
"package:dev": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never --dir",
"postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts",
"start": "ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer",