Skip to content

Commit

Permalink
chore: update scripts (#20)
Browse files Browse the repository at this point in the history
* chore: update scripts
  • Loading branch information
xudafeng authored Sep 10, 2023
1 parent af7b7b2 commit bd202fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ jobs:
- name: Install dependencies
run: npm install --force

- name: Build Package
run: npm run build

- name: Compile artifacts and upload them to github release
uses: nick-fields/retry@v2
with:
Expand All @@ -57,7 +54,6 @@ jobs:
retry_wait_seconds: 15
retry_on: error
shell: 'bash'
command: npm run build
command: npm run build:main
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
"dev:watch": "gulp dev-app --watch",
"test": "nyc --reporter=lcov --reporter=text mocha",
"lint": "eslint . --fix",
"build": "electron-builder build --config .electron-builder.config.js",
"tsc": "tsc -p tsconfig.json",
"build": "npm run tsc && npm run build:main",
"build:main": "electron-builder build --config .electron-builder.config.js",
"reset:db": "sh ./scripts/clean-db.sh",
"translate": "easy-i18n-cli -c ./i18n.config.js",
"translate:check": "npm run translate -- --check",
Expand Down

0 comments on commit bd202fd

Please sign in to comment.