@@ -33,44 +33,34 @@ jobs:
33
33
- name : Checkout
34
34
uses : actions/checkout@v2
35
35
36
+ - name : Install pnpm
37
+
38
+ with :
39
+ version : 6.15.1
40
+
36
41
- name : Set node version to ${{ matrix.node_version }}
37
42
uses : actions/setup-node@v2
38
43
with :
39
44
node-version : ${{ matrix.node_version }}
45
+ cache : " pnpm"
40
46
41
- - name : Get yarn cache directory
42
- id : yarn-cache
43
- run : echo "::set-output name=dir::$(yarn cache dir)"
44
-
45
- - name : Set dependencies cache
46
- uses : actions/cache@v2
47
- with :
48
- path : ${{ steps.yarn-cache.outputs.dir }}
49
- key : ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
50
- restore-keys : |
51
- ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
52
- ${{ runner.os }}-${{ matrix.node_version }}-
53
-
54
- - name : Versions
55
- run : yarn versions
56
-
57
- - name : Install dependencies
58
- run : yarn install --frozen-lockfile
47
+ - name : Install deps
48
+ run : pnpm install
59
49
60
50
- name : Build vite
61
- run : yarn ci-build-vite
51
+ run : pnpm run ci-build-vite
62
52
63
53
- name : Build plugin-vue
64
- run : yarn build-plugin-vue
54
+ run : pnpm run build-plugin-vue
65
55
66
56
- name : Build plugin-react
67
- run : yarn build-plugin-react
57
+ run : pnpm run build-plugin-react
68
58
69
59
- name : Test serve
70
- run : yarn test-serve --runInBand
60
+ run : pnpm run test-serve -- --runInBand
71
61
72
62
- name : Test build
73
- run : yarn test-build --runInBand
63
+ run : pnpm run test-build -- --runInBand
74
64
75
65
lint :
76
66
runs-on : ubuntu-latest
@@ -80,25 +70,24 @@ jobs:
80
70
with :
81
71
fetch-depth : 0
82
72
73
+ - name : Install pnpm
74
+
75
+ with :
76
+ version : 6.15.1
77
+
83
78
- name : Set node version to 14
84
79
uses : actions/setup-node@v2
85
80
with :
86
81
node-version : 14
82
+ cache : " pnpm"
87
83
88
- - name : Set dependencies cache
89
- uses : actions/cache@v2
90
- with :
91
- path : ~/.cache/yarn
92
- key : lint-dependencies-${{ hashFiles('yarn.lock') }}
93
- restore-keys : |
94
- lint-dependencies-${{ hashFiles('yarn.lock') }}
95
- lint-dependencies-
84
+ - name : Install deps
85
+ run : pnpm install
96
86
97
87
- name : Prepare
98
88
run : |
99
- yarn install --frozen-lockfile
100
- yarn ci-build-vite
101
- yarn build-plugin-vue
89
+ pnpm run ci-build-vite
90
+ pnpm run build-plugin-vue
102
91
103
92
- name : Lint
104
- run : yarn lint
93
+ run : pnpm run lint
0 commit comments