mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 13:00:09 +08:00
fix(cicd): build stage cicd fix
This commit is contained in:
parent
c7b3e4a151
commit
1300b63882
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -48,10 +48,10 @@ jobs:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
run: npm ci
|
||||
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
# - name: Run tests
|
||||
# run: npm run test
|
||||
|
||||
# - name: Build dependencies
|
||||
# run: npm run build
|
||||
@ -74,4 +74,4 @@ jobs:
|
||||
args: --config electron-builder.json
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push' && needs.get_metadata.outputs.branch == 'main'}}
|
||||
max_attempts: 5
|
||||
max_attempts: 3
|
||||
|
@ -1,4 +1,3 @@
|
||||
module.exports = {
|
||||
// "pre-commit": "npx nano-staged",
|
||||
"pre-commit": "",
|
||||
};
|
@ -6,7 +6,8 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "node scripts/watch.mjs",
|
||||
"build": "vue-tsc --noEmit --p packages/renderer/tsconfig.json && electron-builder",
|
||||
"prebuild": "vue-tsc --noEmit --p packages/renderer/tsconfig.json && node scripts/build.mjs",
|
||||
"build": "electron-builder",
|
||||
"init": "git config core.hooksPath .git/hooks/ && rm -rf .git/hooks && npx simple-git-hooks",
|
||||
"test:e2e": "npx playwright test",
|
||||
"test:e2e:headless": "npx playwright test --headed"
|
||||
@ -41,4 +42,4 @@
|
||||
"dependencies": {
|
||||
"sqlite3": "^5.0.2"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user