File tree Expand file tree Collapse file tree 4 files changed +49
-19
lines changed Expand file tree Collapse file tree 4 files changed +49
-19
lines changed Original file line number Diff line number Diff line change 48
48
node-version : [16.x]
49
49
50
50
steps :
51
+ - name : Clone repository
52
+ uses : actions/checkout@v3
53
+
54
+ - name : Install pnpm
55
+
56
+
57
+ - name : Set node version to 16
58
+ uses : actions/setup-node@v2
59
+ with :
60
+ node-version : 16
61
+ cache : ' pnpm'
62
+
63
+ - name : Install dependencies
64
+ run : pnpm install --ignore-scripts
65
+
51
66
- name : Test lint
52
67
run : pnpm run test:lint
53
68
# test-audit:
60
75
# node-version: [16.x]
61
76
62
77
# steps:
78
+ # - name: Clone repository
79
+ # uses: actions/checkout@v3
80
+
81
+ # - name: Install pnpm
82
+
83
+
84
+ # - name: Set node version to 16
85
+ # uses: actions/setup-node@v2
86
+ # with:
87
+ # node-version: 16
88
+ # cache: 'pnpm'
89
+
90
+ # - name: Install dependencies
91
+ # run: pnpm install --ignore-scripts
92
+
63
93
# - name: Test audit
64
94
# run: pnpm audit
65
95
test-unit :
@@ -73,5 +103,20 @@ jobs:
73
103
node-version : [16.x]
74
104
75
105
steps :
106
+ - name : Clone repository
107
+ uses : actions/checkout@v3
108
+
109
+ - name : Install pnpm
110
+
111
+
112
+ - name : Set node version to 16
113
+ uses : actions/setup-node@v2
114
+ with :
115
+ node-version : 16
116
+ cache : ' pnpm'
117
+
118
+ - name : Install dependencies
119
+ run : pnpm install --ignore-scripts
120
+
76
121
- name : Test unit
77
122
run : npm run test:unit --coverage --maxWorkers=2
Original file line number Diff line number Diff line change 10
10
branches :
11
11
- main
12
12
jobs :
13
- build :
13
+ build-and-deploy :
14
+ concurrency : ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
15
+
14
16
runs-on : ${{ matrix.os }}
15
17
16
18
strategy :
36
38
37
39
- name : Build library
38
40
run : pnpm run build
39
- deploy :
40
- needs : build
41
-
42
- concurrency : ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
43
-
44
- runs-on : ${{ matrix.os }}
45
41
46
- strategy :
47
- matrix :
48
- os : [ubuntu-latest]
49
- node-version : [16.x]
50
-
51
- steps :
52
42
- name : Deploy Pages
53
43
54
44
with :
Original file line number Diff line number Diff line change 8
8
types : [created]
9
9
10
10
jobs :
11
- build :
11
+ publish-npm :
12
12
runs-on : ${{ matrix.os }}
13
13
14
14
strategy :
37
37
38
38
- name : Test library
39
39
- run : npm test
40
- publish-npm :
41
- needs : build
42
40
43
- runs-on : ubuntu-latest
44
-
45
- steps :
46
41
- name : Publish
47
42
run : pnpm publish
48
43
env :
File renamed without changes.
You can’t perform that action at this time.
0 commit comments