From 1300b638820bf00e5d100215783f1f9bac19905f Mon Sep 17 00:00:00 2001 From: oceanlvr <657531018@qq.com> Date: Wed, 16 Mar 2022 10:21:25 +0800 Subject: [PATCH] fix(cicd): build stage cicd fix --- .github/workflows/release.yml | 8 ++++---- .simple-git-hooks.cjs | 1 - package.json | 5 +++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06305ba..9c15b34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.simple-git-hooks.cjs b/.simple-git-hooks.cjs index eec1ca3..2488889 100644 --- a/.simple-git-hooks.cjs +++ b/.simple-git-hooks.cjs @@ -1,4 +1,3 @@ module.exports = { // "pre-commit": "npx nano-staged", - "pre-commit": "", }; \ No newline at end of file diff --git a/package.json b/package.json index d766e8e..c30836c 100644 --- a/package.json +++ b/package.json @@ -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" } -} +} \ No newline at end of file