Skip to content

Commit aab523e

Browse files
committed
Add build to ci
1 parent 70a0236 commit aab523e

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/ci.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,23 @@ jobs:
3333
- if: steps.cache.outputs.cache-hit != 'true'
3434
run: npm install
3535

36-
tests:
36+
build:
37+
needs: install
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 20.x
44+
- name: Load node_modules from cache
45+
uses: actions/cache@v3
46+
with:
47+
# Use node_modules from previous jobs
48+
path: 'node_modules'
49+
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
50+
- run: npm run build
51+
52+
lint:
3753
needs: install
3854
runs-on: ubuntu-latest
3955
steps:
@@ -48,4 +64,19 @@ jobs:
4864
path: 'node_modules'
4965
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
5066
- run: npm run lint
67+
68+
test:
69+
needs: install
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
- uses: actions/setup-node@v4
74+
with:
75+
node-version: 20.x
76+
- name: Load node_modules from cache
77+
uses: actions/cache@v3
78+
with:
79+
# Use node_modules from previous jobs
80+
path: 'node_modules'
81+
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
5182
- run: npm run test

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"babel-umd": "babel --optional runtime dist/vue-async-computed.esnext.js --out-file dist/vue-async-computed.js",
2424
"babel-esm": "babel --optional runtime dist/vue-async-computed.esm.esnext.js --out-file dist/vue-async-computed.esm.js",
2525
"babel": "npm run babel-umd -s && npm run babel-esm -s",
26-
"postbuild": "vitest run",
2726
"prepublishOnly": "npm run build -s",
2827
"patch": "npm version patch && npm publish",
2928
"minor": "npm version minor && npm publish",

0 commit comments

Comments
 (0)