fix(cicd): build stage cicd fix

This commit is contained in:
oceanlvr 2022-03-16 10:21:25 +08:00
parent c7b3e4a151
commit 1300b63882
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -1,4 +1,3 @@
module.exports = {
// "pre-commit": "npx nano-staged",
"pre-commit": "",
};

View File

@ -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"
}
}
}