Skip to content

Commit 7dc15f7

Browse files
committed
ci: bump actions to Node 24 and drop Node 20 workaround
Upgrade checkout/setup-node/setup-go/upload-artifact/pnpm/action-gh-release to their latest majors so they run natively on Node 24, removing the now-obsolete FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env workaround introduced in f61d6dd. These actions were the source of the Node 20 deprecation warnings (and the bundled node-fetch/punycode DEP0169/DEP0040 warnings) appearing in every Auto Update and Daily Release run.
1 parent f61d6dd commit 7dc15f7

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.github/actions/setup-runtime/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ runs:
3131
using: "composite"
3232
steps:
3333
- name: Setup pnpm
34-
uses: pnpm/action-setup@v4
34+
uses: pnpm/action-setup@v6
3535
with:
3636
version: ${{ inputs.pnpm-version }}
3737
run_install: false
3838

3939
- name: Setup Node.js
40-
uses: actions/setup-node@v4
40+
uses: actions/setup-node@v6
4141
with:
4242
node-version: ${{ inputs.node-version }}
4343
cache: "pnpm"
@@ -49,7 +49,7 @@ runs:
4949

5050
- name: Setup Go
5151
if: inputs.setup-go == 'true'
52-
uses: actions/setup-go@v5
52+
uses: actions/setup-go@v6
5353
with:
5454
go-version: ${{ inputs.go-version }}
5555
cache-dependency-path: lib/mmdbwriter/go.sum

.github/workflows/auto-update.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ env:
2525
GO_VERSION: "1.25"
2626
TABLE_SCHEDULE: "0 */2 * * *"
2727
ARCHIVE_SCHEDULE: "0 1 * * *"
28-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
2928

3029
concurrency:
3130
group: auto-update-${{ github.ref }}
@@ -39,7 +38,7 @@ jobs:
3938

4039
steps:
4140
- name: Checkout repository
42-
uses: actions/checkout@v4
41+
uses: actions/checkout@v7
4342
with:
4443
fetch-depth: 1
4544
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ env:
2424
NODE_VERSION: "22"
2525
PNPM_VERSION: "10.11.0"
2626
GO_VERSION: "1.25"
27-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
2827

2928
concurrency:
3029
group: release-${{ github.ref }}
@@ -38,7 +37,7 @@ jobs:
3837

3938
steps:
4039
- name: Checkout main branch for workflows
41-
uses: actions/checkout@v4
40+
uses: actions/checkout@v7
4241
with:
4342
fetch-depth: 1
4443
token: ${{ secrets.GITHUB_TOKEN }}
@@ -52,7 +51,7 @@ jobs:
5251

5352
- name: Checkout source branch for data
5453
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.source_branch != '' && github.event.inputs.source_branch != 'main' }}
55-
uses: actions/checkout@v4
54+
uses: actions/checkout@v7
5655
with:
5756
fetch-depth: 1
5857
token: ${{ secrets.GITHUB_TOKEN }}
@@ -70,7 +69,7 @@ jobs:
7069
7170
- name: Checkout auto-update branch for data (scheduled)
7271
if: ${{ github.event_name == 'schedule' }}
73-
uses: actions/checkout@v4
72+
uses: actions/checkout@v7
7473
with:
7574
fetch-depth: 1
7675
token: ${{ secrets.GITHUB_TOKEN }}
@@ -135,7 +134,7 @@ jobs:
135134
cd -
136135
137136
- name: Upload release assets artifact
138-
uses: actions/upload-artifact@v4
137+
uses: actions/upload-artifact@v7
139138
with:
140139
name: release-files-${{ steps.date.outputs.date }}
141140
path: release-assets
@@ -180,7 +179,7 @@ jobs:
180179
EOF
181180
182181
- name: Create GitHub Release
183-
uses: softprops/action-gh-release@v1
182+
uses: softprops/action-gh-release@v3
184183
with:
185184
tag_name: v${{ steps.date.outputs.date }}
186185
name: BGP.Tools OpenDB - ${{ steps.date.outputs.date }}

0 commit comments

Comments
 (0)