@@ -21,19 +21,12 @@ jobs:
21
21
run : |
22
22
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
23
23
shell : bash
24
- - name : Remove package-lock.json
25
- run : rm -rf package-lock.json
26
- - name : Install dependencies and regenerate package-lock.json
27
- run : npm install
24
+ - name : Regenerate package-lock.json
25
+ run : npm i
26
+ - name : Clean node_modules after regenerate
27
+ run : rm -rf node_modules
28
28
- name : Clean install on CI
29
- run : |
30
- if [ -e yarn.lock ]; then
31
- yarn install --frozen-lockfile
32
- elif [ -e package-lock.json ]; then
33
- npm ci
34
- else
35
- npm i
36
- fi
29
+ run : npm ci
37
30
- name : Linter code check
38
31
run : npm run lint:check
39
32
- name : Testing JEST
@@ -55,15 +48,12 @@ jobs:
55
48
run : |
56
49
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
57
50
shell : bash
51
+ - name : Regenerate package-lock.json
52
+ run : npm i
53
+ - name : Clean node_modules after regenerate
54
+ run : rm -rf node_modules
58
55
- name : Clean install on CI
59
- run : |
60
- if [ -e yarn.lock ]; then
61
- yarn install --frozen-lockfile
62
- elif [ -e package-lock.json ]; then
63
- npm ci
64
- else
65
- npm i
66
- fi
56
+ run : npm ci
67
57
- name : Build library
68
58
run : npm run build
69
59
- name : Release version
@@ -95,15 +85,12 @@ jobs:
95
85
run : |
96
86
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
97
87
shell : bash
88
+ - name : Regenerate package-lock.json
89
+ run : npm i
90
+ - name : Clean node_modules after regenerate
91
+ run : rm -rf node_modules
98
92
- name : Clean install on CI
99
- run : |
100
- if [ -e yarn.lock ]; then
101
- yarn install --frozen-lockfile
102
- elif [ -e package-lock.json ]; then
103
- npm ci
104
- else
105
- npm i
106
- fi
93
+ run : npm ci
107
94
- name : Generate new Build to Pages
108
95
run : npm run deploy
109
96
- name : Upload deploy-ready build files
0 commit comments