Skip to content

Commit 1300016

Browse files
committed
Updating GitHub Workflow for node + JDK17
1 parent 5b0fcc8 commit 1300016

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,13 @@ jobs:
2323
hugo-version: '0.147.2'
2424
extended: true
2525

26-
- name: Setup Node
27-
uses: actions/setup-node@v1
26+
- uses: actions/setup-node@v4
2827
with:
29-
node-version: '12.x'
28+
node-version: '20'
29+
cache: 'npm'
30+
cache-dependency-path: '**/package-lock.json'
3031

31-
- name: Cache dependencies
32-
uses: actions/cache@v1
33-
with:
34-
path: ~/.npm
35-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36-
restore-keys: |
37-
${{ runner.os }}-node-
38-
39-
- run: npm ci
32+
- run: npm install
4033
- run: hugo
4134
env:
4235
HUGO_ENV: production

.github/workflows/maven.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
19-
- name: Set up JDK 8
20-
uses: actions/setup-java@v2
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-java@v4
2120
with:
22-
java-version: '8'
2321
distribution: 'adopt'
24-
cache: maven
22+
java-version: '17'
2523
- name: Build with Maven
2624
run: mvn -B verify --file pom.xml

0 commit comments

Comments
 (0)