Skip to content

Commit 1eaff4f

Browse files
Copilotsalmanmkc
andauthored
Migrate GitHub workflows to Node 24-compatible actions
Agent-Logs-Url: https://github.com/github/vscode-github-actions/sessions/0c1437aa-f8b7-4e39-8c42-5569156f9a66 Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com>
1 parent 7f1f776 commit 1eaff4f

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

.github/workflows/build-preview.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ permissions:
1010
contents: read
1111
packages: read
1212

13+
env:
14+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
15+
1316
jobs:
1417
build:
1518
runs-on: ubuntu-latest
1619

1720
steps:
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-node@v4
21+
- uses: actions/checkout@v5
22+
- uses: actions/setup-node@v5
2023
with:
2124
node-version: 16.x
2225
cache: "npm"
@@ -29,6 +32,6 @@ jobs:
2932
cp package.json package.json.real
3033
sed --regexp-extended '/"name"\s*:/ s#@[a-zA-Z\\-]+/##' package.json.real > package.json
3134
- run: npm run package
32-
- uses: actions/upload-artifact@v4
35+
- uses: actions/upload-artifact@v5
3336
with:
3437
path: ./vscode-github-actions-1.0.${{ github.run_number }}.vsix

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ permissions:
1010
contents: read
1111
packages: read
1212

13+
env:
14+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
15+
1316
jobs:
1417
build:
1518
runs-on: ubuntu-latest
1619
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-node@v4
20+
- uses: actions/checkout@v5
21+
- uses: actions/setup-node@v5
1922
with:
2023
node-version: 16.x
2124
cache: "npm"

.github/workflows/publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
version:
1313
description: "Version to release"
1414
required: true
15+
16+
env:
17+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
18+
1519
jobs:
1620
check-version-change:
1721
if: ${{ github.repository_owner == 'github' }}
@@ -25,7 +29,7 @@ jobs:
2529
contents: read
2630

2731
steps:
28-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v5
2933
- name: Check if version has changed
3034
id: check-version
3135
uses: actions/github-script@v7
@@ -67,9 +71,9 @@ jobs:
6771
version: ${{ env.EXT_VERSION }}
6872

6973
steps:
70-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v5
7175

72-
- uses: actions/setup-node@v4
76+
- uses: actions/setup-node@v5
7377
with:
7478
node-version: 16.x
7579
cache: "npm"
@@ -90,7 +94,7 @@ jobs:
9094
9195
- run: npm run package
9296

93-
- uses: actions/upload-artifact@v4
97+
- uses: actions/upload-artifact@v5
9498
with:
9599
name: vscode-github-actions-${{ env.EXT_VERSION }}.vsix
96100
path: ./vscode-github-actions-${{ env.EXT_VERSION }}.vsix

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
description: "Update the language server to the latest version?"
1919
type: boolean
2020

21+
env:
22+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
23+
2124

2225
jobs:
2326
create-release-pr:
@@ -30,9 +33,9 @@ jobs:
3033
pull-requests: write
3134

3235
steps:
33-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v5
3437

35-
- uses: actions/setup-node@v4
38+
- uses: actions/setup-node@v5
3639
with:
3740
node-version: "16"
3841

0 commit comments

Comments
 (0)