11
11
runs-on : ubuntu-latest
12
12
timeout-minutes : 5
13
13
steps :
14
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
15
15
- name : Setup Node.js
16
- uses : actions/setup-node@v3
16
+ uses : actions/setup-node@v4
17
17
with :
18
18
node-version-file : ' .node-version'
19
19
cache : ' npm'
@@ -26,15 +26,15 @@ jobs:
26
26
runs-on : ubuntu-latest
27
27
timeout-minutes : 5
28
28
steps :
29
- - uses : actions/checkout@v3
29
+ - uses : actions/checkout@v4
30
30
- name : Cache build
31
31
id : cache-build
32
- uses : actions/cache@v3
32
+ uses : actions/cache@v4
33
33
with :
34
34
path : node_modules/.cache/nx
35
35
key : ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-build
36
36
- name : Setup Node.js
37
- uses : actions/setup-node@v3
37
+ uses : actions/setup-node@v4
38
38
with :
39
39
node-version-file : ' .node-version'
40
40
cache : ' npm'
@@ -55,23 +55,23 @@ jobs:
55
55
portal
56
56
]
57
57
steps :
58
- - uses : actions/checkout@v3
58
+ - uses : actions/checkout@v4
59
59
- name : Cache build
60
60
id : cache-build
61
- uses : actions/cache@v3
61
+ uses : actions/cache@v4
62
62
with :
63
63
path : node_modules/.cache/nx
64
64
key : ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
65
65
- name : Setup Node.js
66
- uses : actions/setup-node@v3
66
+ uses : actions/setup-node@v4
67
67
with :
68
68
node-version-file : ' .node-version'
69
69
cache : ' npm'
70
70
cache-dependency-path : ' package-lock.json'
71
71
- run : npm ci
72
72
- run : npx lerna run build --scope=@fumix/fu-blog-${{ matrix.workspace }}
73
73
- run : echo "This file is placed at the project root, so Github preserves the artifact paths (see https://github.com/actions/upload-artifact/issues/206)" > root.txt
74
- - uses : actions/upload-artifact@v3
74
+ - uses : actions/upload-artifact@v4
75
75
with :
76
76
name : dist
77
77
path : | # Important to use `|` to preserve the path (see https://github.com/actions/upload-artifact/issues/55#issuecomment-633825395)
@@ -84,15 +84,15 @@ jobs:
84
84
runs-on : ubuntu-latest
85
85
timeout-minutes : 15
86
86
steps :
87
- - uses : actions/checkout@v3
87
+ - uses : actions/checkout@v4
88
88
- name : Cache build
89
89
id : cache-build
90
- uses : actions/cache@v3
90
+ uses : actions/cache@v4
91
91
with :
92
92
path : node_modules/.cache/nx
93
93
key : ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
94
94
- name : Setup Node.js
95
- uses : actions/setup-node@v3
95
+ uses : actions/setup-node@v4
96
96
with :
97
97
node-version-file : ' .node-version'
98
98
cache : ' npm'
@@ -111,8 +111,8 @@ jobs:
111
111
contents : read
112
112
packages : write
113
113
steps :
114
- - uses : actions/checkout@v3
115
- - uses : actions/download-artifact@v3
114
+ - uses : actions/checkout@v4
115
+ - uses : actions/download-artifact@v4
116
116
with :
117
117
name : dist
118
118
- run : |
@@ -126,17 +126,17 @@ jobs:
126
126
npm install
127
127
- name : Extract metadata (tags, labels) for Docker
128
128
id : meta
129
- uses : docker/metadata-action@v4
129
+ uses : docker/metadata-action@v5
130
130
with :
131
131
images : ${{ env.REGISTRY }}/${{ github.repository }}-app
132
132
- name : Log in to the Container registry
133
- uses : docker/login-action@v2
133
+ uses : docker/login-action@v3
134
134
with :
135
135
registry : ${{ env.REGISTRY }}
136
136
username : ${{ github.actor }}
137
137
password : ${{ secrets.GITHUB_TOKEN }}
138
138
- name : Build and push Docker image
139
- uses : docker/build-push-action@v3
139
+ uses : docker/build-push-action@v6
140
140
with :
141
141
context : docker/app
142
142
push : true
@@ -160,10 +160,10 @@ jobs:
160
160
en_US
161
161
]
162
162
steps :
163
- - uses : actions/checkout@v3
163
+ - uses : actions/checkout@v4
164
164
- name : Extract metadata (tags, labels) for Docker
165
165
id : meta
166
- uses : docker/metadata-action@v4
166
+ uses : docker/metadata-action@v5
167
167
with :
168
168
images : ${{ env.REGISTRY }}/${{ github.repository }}-postgres
169
169
labels : |
@@ -178,13 +178,13 @@ jobs:
178
178
latest=auto
179
179
suffix=-${{ matrix.language }},onlatest=true
180
180
- name : Log in to the Container registry
181
- uses : docker/login-action@v2
181
+ uses : docker/login-action@v3
182
182
with :
183
183
registry : ${{ env.REGISTRY }}
184
184
username : ${{ github.actor }}
185
185
password : ${{ secrets.GITHUB_TOKEN }}
186
186
- name : Build and push Docker image
187
- uses : docker/build-push-action@v3
187
+ uses : docker/build-push-action@v6
188
188
with :
189
189
build-args : |
190
190
language=${{ matrix.language }}
0 commit comments