Skip to content

Commit 4d79272

Browse files
committed
Upgrade dependencies of GitHub workflows
1 parent 975d455 commit 4d79272

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [ 16.x, 18.x ]
18+
node-version: [ 18.x, 20.x ]
1919
java-version: [ 11 ]
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626

2727
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@v4
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131

@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: SonarCloud Scan
5555
uses: SonarSource/sonarcloud-github-action@master
56-
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && matrix.node-version == '18.x'
56+
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && matrix.node-version == '20.x'
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
packages: write
1010

1111
env:
12-
NODE_VERSION: 18.x
12+
NODE_VERSION: 20.x
1313

1414
jobs:
1515
publish-npm:
@@ -18,12 +18,12 @@ jobs:
1818
id-token: write
1919
steps:
2020
- name: Checkout tag "${{ github.ref_name }}"
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
ref: ${{ github.ref_name }}
2424

2525
- name: Use Node.js ${{ env.NODE_VERSION }}
26-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@v4
2727
with:
2828
node-version: ${{ env.NODE_VERSION }}
2929
registry-url: 'https://registry.npmjs.org'
@@ -45,12 +45,12 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Checkout tag "${{ github.ref_name }}"
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
with:
5050
ref: ${{ github.ref_name }}
5151

5252
- name: Use Node.js ${{ env.NODE_VERSION }}
53-
uses: actions/setup-node@v3
53+
uses: actions/setup-node@v4
5454
with:
5555
node-version: ${{ env.NODE_VERSION }}
5656

.github/workflows/release.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,24 @@ permissions:
1616
contents: write
1717

1818
env:
19-
NODE_VERSION: 18.x
19+
NODE_VERSION: 20.x
2020
JDK_VERSION: 11
2121

2222
jobs:
23-
checks:
24-
name: Requirements
25-
runs-on: ubuntu-latest
26-
steps:
27-
- name: Check user permissions
28-
uses: 74th/[email protected]
29-
with:
30-
users: dedece35,glalloue,jhertout,jules-delecour-dav,olegoaer,zippy1978,utarwyn
31-
3223
release:
3324
name: Create release
3425
runs-on: ubuntu-latest
26+
if: contains('["dedece35","glalloue","jhertout","jules-delecour-dav","olegoaer","zippy1978","utarwyn"]', github.actor)
3527
needs: checks
3628
steps:
3729
- name: Checkout
38-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3931
with:
4032
fetch-depth: 0
4133
token: ${{ secrets.RELEASE_TOKEN }}
4234

4335
- name: Use Node.js ${{ env.NODE_VERSION }}
44-
uses: actions/setup-node@v3
36+
uses: actions/setup-node@v4
4537
with:
4638
node-version: ${{ env.NODE_VERSION }}
4739

@@ -111,7 +103,7 @@ jobs:
111103
needs: release
112104
steps:
113105
- name: Checkout
114-
uses: actions/checkout@v3
106+
uses: actions/checkout@v4
115107
with:
116108
ref: ${{ github.ref }}
117109
token: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)