Skip to content

Commit 9b0bbb5

Browse files
committed
chore: avoid building multiple times
1 parent 941cf65 commit 9b0bbb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
node-version: ${{ matrix.node-version }}
3434
- run: npm ci
3535
- run: npm run lint
36-
- run: npm run build --if-present
36+
- run: npm run build
3737
- run: npm test
3838
env:
3939
CI: true
@@ -52,6 +52,7 @@ jobs:
5252
node-version: 14
5353
registry-url: https://registry.npmjs.org/
5454
- run: npm ci
55+
- run: npm run build
5556
- run: npx semantic-release@17 --branches main
5657
env:
5758
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"scripts": {
1414
"build": "rollup -c rollup.config.ts",
1515
"lint": "eslint ./src/**/*.{ts,vue} ./tests/**/*.{ts,vue}",
16-
"prepare": "npm run build",
1716
"test": "npm run test:2 && npm run test:3",
1817
"test:2": "vue-demi-switch 2 vue2 && jest",
1918
"test:3": "vue-demi-switch 3 && jest",

0 commit comments

Comments
 (0)