From 5dd3e91d6f7e36aabd2e0ddb84b307650a4bb957 Mon Sep 17 00:00:00 2001 From: Jarno Elovirta Date: Sun, 25 Feb 2024 12:38:03 +0200 Subject: [PATCH 1/4] Update GitHub Actions' action versions Signed-off-by: Jarno Elovirta --- .github/actions/render/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/render/action.yml b/.github/actions/render/action.yml index b640f1eb..1340b53f 100644 --- a/.github/actions/render/action.yml +++ b/.github/actions/render/action.yml @@ -11,12 +11,12 @@ runs: using: 'composite' steps: - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: temurin java-version: 17 - name: Set Node.js version 12.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: 12.x - name: Set up Ruby From d14778aedef07658adc6fb03baf7cc9c2439056b Mon Sep 17 00:00:00 2001 From: Jarno Elovirta Date: Sun, 25 Feb 2024 12:33:09 +0200 Subject: [PATCH 2/4] Add NVM configuration for setting local Node.js version Signed-off-by: Jarno Elovirta --- .nvmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..2dbbe00e --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20.11.1 From e7afc33e8d2cc31ef9a7fa3b2803e9fb096bcffd Mon Sep 17 00:00:00 2001 From: Jarno Elovirta Date: Sun, 25 Feb 2024 12:39:00 +0200 Subject: [PATCH 3/4] Update Node.js version in GitHub Actions to 20.x Signed-off-by: Jarno Elovirta --- .github/actions/render/action.yml | 2 +- .github/workflows/prettier.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/render/action.yml b/.github/actions/render/action.yml index 1340b53f..dd4a393d 100644 --- a/.github/actions/render/action.yml +++ b/.github/actions/render/action.yml @@ -18,7 +18,7 @@ runs: - name: Set Node.js version 12.x uses: actions/setup-node@v4 with: - node-version: 12.x + node-version: '20.x' - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 2f90d6b2..fa676699 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' cache: 'npm' - name: Install dependencies From 98243ea9f14b0b6942d5507945d67db3d81dc0b8 Mon Sep 17 00:00:00 2001 From: Jarno Elovirta Date: Sun, 25 Feb 2024 12:39:37 +0200 Subject: [PATCH 4/4] Cache Node.js and Java dependencies in GitHub Actions Signed-off-by: Jarno Elovirta --- .github/actions/render/action.yml | 2 ++ .github/workflows/release.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/actions/render/action.yml b/.github/actions/render/action.yml index dd4a393d..75cfd305 100644 --- a/.github/actions/render/action.yml +++ b/.github/actions/render/action.yml @@ -15,10 +15,12 @@ runs: with: distribution: temurin java-version: 17 + cache: 'gradle' - name: Set Node.js version 12.x uses: actions/setup-node@v4 with: node-version: '20.x' + cache: 'npm' - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc6a2c07..4355e37d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,7 @@ jobs: with: distribution: temurin java-version: 17 + cache: 'gradle' - name: Check out website uses: actions/checkout@v4 with: