Skip to content

Commit decc8b0

Browse files
committed
fix: upgrade GitHub Actions to Node.js 24 compatible versions
Upgrade all actions/* dependencies to versions that run on Node.js 24, fixing the deprecation warnings from GitHub Actions: - actions/setup-node: v4 β†’ v6 - actions/cache: v4 β†’ v5 - actions/upload-artifact: v4 β†’ v7 - actions/checkout: v4 β†’ v6 (in files that were still on v4) - actions/create-github-app-token: pinned v1.11.0 β†’ v3 - actions/download-artifact: pinned v4 β†’ v8 Node.js 20 actions will be forced to Node.js 24 starting June 2, 2026 and removed entirely on September 16, 2026.
1 parent 390ea43 commit decc8b0

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: Node ${{ matrix.node }}
2323
steps:
2424
- uses: actions/checkout@v6
25-
- uses: actions/setup-node@v4
25+
- uses: actions/setup-node@v6
2626
with:
2727
node-version: '${{ matrix.node }}'
2828
- name: Get pnpm version from Volta config
@@ -31,7 +31,7 @@ jobs:
3131
- uses: pnpm/action-setup@v4
3232
with:
3333
version: ${{ steps.pnpm-version.outputs.version }}
34-
- uses: actions/cache@v4
34+
- uses: actions/cache@v5
3535
id: cache
3636
with:
3737
path: node_modules
@@ -51,7 +51,7 @@ jobs:
5151
environment: ${{ github.ref == 'refs/heads/master' && 'production' }}
5252
steps:
5353
- uses: actions/checkout@v6
54-
- uses: actions/setup-node@v4
54+
- uses: actions/setup-node@v6
5555
with:
5656
node-version-file: package.json
5757
- name: Get pnpm version from Volta config
@@ -60,7 +60,7 @@ jobs:
6060
- uses: pnpm/action-setup@v4
6161
with:
6262
version: ${{ steps.pnpm-version.outputs.version }}
63-
- uses: actions/cache@v4
63+
- uses: actions/cache@v5
6464
id: cache
6565
with:
6666
path: node_modules
@@ -78,7 +78,7 @@ jobs:
7878
- name: NPM Pack
7979
run: npm pack
8080
- name: Upload Build Artifact
81-
uses: actions/upload-artifact@v4
81+
uses: actions/upload-artifact@v7
8282
with:
8383
name: craft-binary
8484
path: |
@@ -93,7 +93,7 @@ jobs:
9393
contents: read
9494
steps:
9595
- uses: actions/checkout@v6
96-
- uses: actions/setup-node@v4
96+
- uses: actions/setup-node@v6
9797
with:
9898
node-version-file: package.json
9999
- name: Get pnpm version from Volta config
@@ -112,7 +112,7 @@ jobs:
112112
cp .nojekyll docs/dist/
113113
cd docs/dist && zip -r ../../gh-pages.zip .
114114
- name: Upload Docs Artifact
115-
uses: actions/upload-artifact@v4
115+
uses: actions/upload-artifact@v7
116116
with:
117117
name: craft-docs
118118
path: ${{ github.workspace }}/gh-pages.zip

β€Ž.github/workflows/changelog-preview.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ jobs:
8484
steps:
8585
# For pull_request_target, we must explicitly specify the ref to get the PR commits.
8686
# Try the merge ref first; fall back to head ref if PR has merge conflicts.
87-
- uses: actions/checkout@v4
87+
- uses: actions/checkout@v6
8888
id: checkout-merge
8989
continue-on-error: true
9090
with:
9191
fetch-depth: 0
9292
ref: refs/pull/${{ github.event.pull_request.number }}/merge
9393

94-
- uses: actions/checkout@v4
94+
- uses: actions/checkout@v6
9595
if: steps.checkout-merge.outcome == 'failure'
9696
with:
9797
fetch-depth: 0

β€Ž.github/workflows/docs-preview.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
preview:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919

20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6
2121
with:
2222
node-version: '22'
2323

β€Ž.github/workflows/lint.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v6
1414
with:
1515
ref: ${{ github.event.pull_request.head.sha }}
16-
- uses: actions/setup-node@v4
16+
- uses: actions/setup-node@v6
1717
with:
1818
node-version-file: package.json
1919
- name: Get pnpm version from Volta config
@@ -22,7 +22,7 @@ jobs:
2222
- uses: pnpm/action-setup@v4
2323
with:
2424
version: ${{ steps.pnpm-version.outputs.version }}
25-
- uses: actions/cache@v4
25+
- uses: actions/cache@v5
2626
id: cache
2727
with:
2828
path: |

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ jobs:
101101
- name: Get auth token
102102
id: token
103103
if: github.event_name == 'workflow_dispatch' && github.repository == 'getsentry/craft'
104-
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
104+
uses: actions/create-github-app-token@v3
105105
with:
106106
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
107107
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
108108

109-
- uses: actions/checkout@v4
109+
- uses: actions/checkout@v6
110110
with:
111111
# Use release bot token for Craft repo, inherited token for external repos
112112
token: ${{ steps.token.outputs.token || github.token }}

β€Žaction.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ runs:
9494
- name: Download Craft from build artifact
9595
id: craft-artifact
9696
if: github.repository == 'getsentry/craft'
97-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
97+
uses: actions/download-artifact@v8
9898
with:
9999
name: craft-binary
100100
path: /tmp/craft-artifact

0 commit comments

Comments
Β (0)