Skip to content

Commit

Permalink
modified: .github/workflows/ci-cd.yml
Browse files Browse the repository at this point in the history
	modified:   frontend/package.json
  • Loading branch information
baoyu0 committed Sep 20, 2024
1 parent b5ee727 commit 145d1d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Setup Git
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'github-actions@github.com'
shell: bash

- name: Install dependencies
run: |
cd frontend
Expand All @@ -41,25 +35,12 @@ jobs:
run: |
cd frontend
npm version patch -m "Bump version to %s [skip ci]"
git config --global user.email "github-actions@github.com"
git config --global user.name "GitHub Actions"
git push
git push --tags
shell: bash

- name: Build Electron app
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd frontend
npm run dist:windows
shell: bash

- name: Install dependencies
run: |
npm install -g npm@latest
cd frontend
npm ci
shell: bash

- name: Check icon file
run: |
if (Test-Path frontend/build/icon.ico) {
Expand All @@ -75,7 +56,6 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd frontend
npm ci
npm run dist:windows
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dist:windows": "npm run build && electron-builder --win --x64",
"test": "echo \"No tests specified\" && exit 0",
"lint": "eslint src/**/*.js",
"version": "npm version patch -m \"Bump version to %s [skip ci]\" && git push && git push --tags"
"version": "echo \"版本更新完成\""
},
"build": {
"appId": "com.yourcompany.insightwave",
Expand Down

0 comments on commit 145d1d2

Please sign in to comment.