File tree Expand file tree Collapse file tree 14 files changed +13
-182
lines changed Expand file tree Collapse file tree 14 files changed +13
-182
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ description: "Initialize NPM Cache"
3
3
runs :
4
4
using : " composite"
5
5
steps :
6
+ - name : Setup Node version equally to our local development version
7
+ # pick the Node version to use and install it
8
+ # https://github.com/actions/setup-node
9
+ uses : actions/setup-node@v3
10
+ with :
11
+ node-version : 16
12
+
13
+ - name : Display node and npm version
14
+ shell : bash
15
+ run : |
16
+ node --version
17
+ npm --version
18
+
6
19
- uses : actions/cache@v3
7
20
id : " npm-cache" # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
8
21
with :
Original file line number Diff line number Diff line change 14
14
- name : ⬇️ Checkout repo
15
15
uses : actions/checkout@v3
16
16
17
- - name : Setup node equally to our local development version
18
- if : steps.npm-cache.outputs.cache-hit != 'true'
19
- # pick the Node version to use and install it
20
- # https://github.com/actions/setup-node
21
- uses : actions/setup-node@v3
22
- with :
23
- node-version : 16
24
-
25
- - name : Display node and npm version
26
- if : steps.npm-cache.outputs.cache-hit != 'true'
27
- run : |
28
- node --version
29
- npm --version
30
-
31
17
- name : 🔄 Init Cache Default
32
18
uses : ./.github/actions/npm-cache
33
19
Original file line number Diff line number Diff line change 12
12
with :
13
13
fetch-depth : 0
14
14
15
- - name : Setup node equally to our local development version
16
- if : steps.npm-cache.outputs.cache-hit != 'true'
17
- # pick the Node version to use and install it
18
- # https://github.com/actions/setup-node
19
- uses : actions/setup-node@v3
20
- with :
21
- node-version : 16
22
-
23
- - name : Display node and npm version
24
- if : steps.npm-cache.outputs.cache-hit != 'true'
25
- run : |
26
- node --version
27
- npm --version
28
-
29
15
- name : ↔ Extract branch name
30
16
uses : ./.github/actions/extract-branch
31
17
id : extract_branch
Original file line number Diff line number Diff line change 11
11
- name : ⬇️ Checkout repo
12
12
uses : actions/checkout@v3
13
13
14
- - name : Setup node equally to our local development version
15
- if : steps.npm-cache.outputs.cache-hit != 'true'
16
- # pick the Node version to use and install it
17
- # https://github.com/actions/setup-node
18
- uses : actions/setup-node@v3
19
- with :
20
- node-version : 16
21
-
22
- - name : Display node and npm version
23
- if : steps.npm-cache.outputs.cache-hit != 'true'
24
- run : |
25
- node --version
26
- npm --version
27
-
28
14
- name : 🔄 Init Cache
29
15
uses : ./.github/actions/npm-cache
30
16
Original file line number Diff line number Diff line change 27
27
- name : ⬇ Checkout repo
28
28
uses : actions/checkout@v3
29
29
30
- - name : Setup node equally to our local development version
31
- if : steps.npm-cache.outputs.cache-hit != 'true'
32
- # pick the Node version to use and install it
33
- # https://github.com/actions/setup-node
34
- uses : actions/setup-node@v3
35
- with :
36
- node-version : 16
37
-
38
- - name : Display node and npm version
39
- if : steps.npm-cache.outputs.cache-hit != 'true'
40
- run : |
41
- node --version
42
- npm --version
43
-
44
30
- name : 🔄 Init Cache
45
31
uses : ./.github/actions/npm-cache
46
32
Original file line number Diff line number Diff line change 11
11
- name : ⬇️ Checkout repo
12
12
uses : actions/checkout@v3
13
13
14
- - name : Setup node equally to our local development version
15
- if : steps.npm-cache.outputs.cache-hit != 'true'
16
- # pick the Node version to use and install it
17
- # https://github.com/actions/setup-node
18
- uses : actions/setup-node@v3
19
- with :
20
- node-version : 16
21
-
22
- - name : Display node and npm version
23
- if : steps.npm-cache.outputs.cache-hit != 'true'
24
- run : |
25
- node --version
26
- npm --version
27
-
28
14
- name : 🔄 Init Cache
29
15
uses : ./.github/actions/npm-cache
30
16
Original file line number Diff line number Diff line change 11
11
- name : ⬇️ Checkout repo
12
12
uses : actions/checkout@v3
13
13
14
- - name : Setup node equally to our local development version
15
- if : steps.npm-cache.outputs.cache-hit != 'true'
16
- # pick the Node version to use and install it
17
- # https://github.com/actions/setup-node
18
- uses : actions/setup-node@v3
19
- with :
20
- node-version : 16
21
-
22
- - name : Display node and npm version
23
- if : steps.npm-cache.outputs.cache-hit != 'true'
24
- run : |
25
- node --version
26
- npm --version
27
-
28
14
- name : 🔄 Init Cache
29
15
uses : ./.github/actions/npm-cache
30
16
Original file line number Diff line number Diff line change 23
23
- name : ⬇ Checkout repo
24
24
uses : actions/checkout@v3
25
25
26
- - name : Setup node equally to our local development version
27
- if : steps.npm-cache.outputs.cache-hit != 'true'
28
- # pick the Node version to use and install it
29
- # https://github.com/actions/setup-node
30
- uses : actions/setup-node@v3
31
- with :
32
- node-version : 16
33
-
34
- - name : Display node and npm version
35
- if : steps.npm-cache.outputs.cache-hit != 'true'
36
- run : |
37
- node --version
38
- npm --version
39
-
40
26
- name : 🔄 Init Cache
41
27
uses : ./.github/actions/npm-cache
42
28
Original file line number Diff line number Diff line change 24
24
- name : ⬇ Checkout repo
25
25
uses : actions/checkout@v3
26
26
27
- - name : Setup node equally to our local development version
28
- if : steps.npm-cache.outputs.cache-hit != 'true'
29
- # pick the Node version to use and install it
30
- # https://github.com/actions/setup-node
31
- uses : actions/setup-node@v3
32
- with :
33
- node-version : 16
34
-
35
- - name : Display node and npm version
36
- if : steps.npm-cache.outputs.cache-hit != 'true'
37
- run : |
38
- node --version
39
- npm --version
40
-
41
27
- name : 🔄 Init Cache
42
28
uses : ./.github/actions/npm-cache
43
29
Original file line number Diff line number Diff line change 11
11
- name : ⬇ Checkout repo
12
12
uses : actions/checkout@v3
13
13
14
- - name : Setup node equally to our local development version
15
- if : steps.npm-cache.outputs.cache-hit != 'true'
16
- # pick the Node version to use and install it
17
- # https://github.com/actions/setup-node
18
- uses : actions/setup-node@v3
19
- with :
20
- node-version : 16
21
-
22
- - name : Display node and npm version
23
- if : steps.npm-cache.outputs.cache-hit != 'true'
24
- run : |
25
- node --version
26
- npm --version
27
-
28
14
- name : 📡 Add comment
29
15
uses : actions/github-script@v6
30
16
with :
You can’t perform that action at this time.
0 commit comments