File tree 3 files changed +6
-30
lines changed 3 files changed +6
-30
lines changed Original file line number Diff line number Diff line change 60
60
uses : actions/setup-node@v3
61
61
with :
62
62
node-version : ${{ matrix.NODE_VERSION }}
63
- - name : Cache Node.js modules
64
- uses : actions/cache@v3
65
- with :
66
- path : ~/.npm
67
- key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
68
- restore-keys : |
69
- ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
63
+ cache : npm
70
64
- run : npm ci
71
65
- run : npm run lint
72
66
- run : npm test -- --maxWorkers=4
Original file line number Diff line number Diff line change 19
19
with :
20
20
node-version : 18
21
21
registry-url : https://registry.npmjs.org/
22
- - name : Cache Node.js modules
23
- uses : actions/cache@v2
24
- with :
25
- path : ~/.npm
26
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
27
- restore-keys : |
28
- ${{ runner.os }}-node-
22
+ cache : npm
29
23
- run : npm ci
30
24
- run : npx semantic-release
31
25
env :
35
29
- name : Determine tag on current commit
36
30
id : tag
37
31
run : echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"
38
-
32
+
39
33
docs-publish :
40
34
needs : release
41
35
if : needs.release.outputs.current_tag != '' && github.ref == 'refs/heads/release'
49
43
uses : actions/setup-node@v1
50
44
with :
51
45
node-version : 16
52
- - name : Cache Node.js modules
53
- uses : actions/cache@v2
54
- with :
55
- path : ~/.npm
56
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
57
- restore-keys : |
58
- ${{ runner.os }}-node-
46
+ cache : npm
59
47
- name : Generate Docs
60
48
run : |
61
49
npm ci
Original file line number Diff line number Diff line change 4
4
inputs :
5
5
tag :
6
6
default : ' '
7
- description : ' Version tag:'
7
+ description : ' Version tag:'
8
8
jobs :
9
9
docs-publish :
10
10
if : github.event.inputs.tag != ''
18
18
uses : actions/setup-node@v1
19
19
with :
20
20
node-version : 16
21
- - name : Cache Node.js modules
22
- uses : actions/cache@v2
23
- with :
24
- path : ~/.npm
25
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26
- restore-keys : |
27
- ${{ runner.os }}-node-
21
+ cache : npm
28
22
- name : Generate Docs
29
23
run : |
30
24
npm ci
You can’t perform that action at this time.
0 commit comments