Skip to content

Commit ac3de8e

Browse files
committed
Update Github actions versions
1 parent ffb9853 commit ac3de8e

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 5
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Setup Node.js
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version-file: '.node-version'
1919
cache: 'npm'
@@ -26,15 +26,15 @@ jobs:
2626
runs-on: ubuntu-latest
2727
timeout-minutes: 5
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- name: Cache build
3131
id: cache-build
32-
uses: actions/cache@v3
32+
uses: actions/cache@v4
3333
with:
3434
path: node_modules/.cache/nx
3535
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-build
3636
- name: Setup Node.js
37-
uses: actions/setup-node@v3
37+
uses: actions/setup-node@v4
3838
with:
3939
node-version-file: '.node-version'
4040
cache: 'npm'
@@ -55,23 +55,23 @@ jobs:
5555
portal
5656
]
5757
steps:
58-
- uses: actions/checkout@v3
58+
- uses: actions/checkout@v4
5959
- name: Cache build
6060
id: cache-build
61-
uses: actions/cache@v3
61+
uses: actions/cache@v4
6262
with:
6363
path: node_modules/.cache/nx
6464
key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
6565
- name: Setup Node.js
66-
uses: actions/setup-node@v3
66+
uses: actions/setup-node@v4
6767
with:
6868
node-version-file: '.node-version'
6969
cache: 'npm'
7070
cache-dependency-path: 'package-lock.json'
7171
- run: npm ci
7272
- run: npx lerna run build --scope=@fumix/fu-blog-${{ matrix.workspace }}
7373
- 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
7575
with:
7676
name: dist
7777
path: | # Important to use `|` to preserve the path (see https://github.com/actions/upload-artifact/issues/55#issuecomment-633825395)
@@ -84,15 +84,15 @@ jobs:
8484
runs-on: ubuntu-latest
8585
timeout-minutes: 15
8686
steps:
87-
- uses: actions/checkout@v3
87+
- uses: actions/checkout@v4
8888
- name: Cache build
8989
id: cache-build
90-
uses: actions/cache@v3
90+
uses: actions/cache@v4
9191
with:
9292
path: node_modules/.cache/nx
9393
key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
9494
- name: Setup Node.js
95-
uses: actions/setup-node@v3
95+
uses: actions/setup-node@v4
9696
with:
9797
node-version-file: '.node-version'
9898
cache: 'npm'
@@ -111,8 +111,8 @@ jobs:
111111
contents: read
112112
packages: write
113113
steps:
114-
- uses: actions/checkout@v3
115-
- uses: actions/download-artifact@v3
114+
- uses: actions/checkout@v4
115+
- uses: actions/download-artifact@v4
116116
with:
117117
name: dist
118118
- run: |
@@ -126,17 +126,17 @@ jobs:
126126
npm install
127127
- name: Extract metadata (tags, labels) for Docker
128128
id: meta
129-
uses: docker/metadata-action@v4
129+
uses: docker/metadata-action@v5
130130
with:
131131
images: ${{ env.REGISTRY }}/${{ github.repository }}-app
132132
- name: Log in to the Container registry
133-
uses: docker/login-action@v2
133+
uses: docker/login-action@v3
134134
with:
135135
registry: ${{ env.REGISTRY }}
136136
username: ${{ github.actor }}
137137
password: ${{ secrets.GITHUB_TOKEN }}
138138
- name: Build and push Docker image
139-
uses: docker/build-push-action@v3
139+
uses: docker/build-push-action@v6
140140
with:
141141
context: docker/app
142142
push: true
@@ -160,10 +160,10 @@ jobs:
160160
en_US
161161
]
162162
steps:
163-
- uses: actions/checkout@v3
163+
- uses: actions/checkout@v4
164164
- name: Extract metadata (tags, labels) for Docker
165165
id: meta
166-
uses: docker/metadata-action@v4
166+
uses: docker/metadata-action@v5
167167
with:
168168
images: ${{ env.REGISTRY }}/${{ github.repository }}-postgres
169169
labels: |
@@ -178,13 +178,13 @@ jobs:
178178
latest=auto
179179
suffix=-${{ matrix.language }},onlatest=true
180180
- name: Log in to the Container registry
181-
uses: docker/login-action@v2
181+
uses: docker/login-action@v3
182182
with:
183183
registry: ${{ env.REGISTRY }}
184184
username: ${{ github.actor }}
185185
password: ${{ secrets.GITHUB_TOKEN }}
186186
- name: Build and push Docker image
187-
uses: docker/build-push-action@v3
187+
uses: docker/build-push-action@v6
188188
with:
189189
build-args: |
190190
language=${{ matrix.language }}

0 commit comments

Comments
 (0)