Skip to content

Commit 8abc3d5

Browse files
authored
Bump to Node 24 (#87)
1 parent a748312 commit 8abc3d5

File tree

9 files changed

+37
-51
lines changed

9 files changed

+37
-51
lines changed

.github/actionlint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
paths:
2+
'**/*.yml':
3+
ignore:
4+
# https://github.com/rhysd/actionlint/issues/559
5+
- 'invalid runner name "node24"'

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040
- uses: 'actions/checkout@v4'
4141

4242
- id: 'auth'
43-
uses: 'google-github-actions/auth@v2'
43+
uses: 'google-github-actions/auth@v3'
4444
with:
4545
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
4646
service_account: '[email protected]'
4747

4848
- id: 'compute-ssh'
49-
uses: 'google-github-actions/ssh-compute@v1'
49+
uses: 'google-github-actions/ssh-compute@v2'
5050
with:
5151
instance_name: 'example-instance'
5252
zone: 'us-central1-a'
@@ -104,13 +104,13 @@ jobs:
104104
- uses: 'actions/checkout@v4'
105105
106106
- id: 'auth'
107-
uses: 'google-github-actions/auth@v2'
107+
uses: 'google-github-actions/auth@v3'
108108
with:
109109
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
110110
service_account: '[email protected]'
111111
112112
- id: 'compute-ssh'
113-
uses: 'google-github-actions/ssh-compute@v1'
113+
uses: 'google-github-actions/ssh-compute@v2'
114114
with:
115115
instance_name: 'example-instance'
116116
zone: 'us-central1-a'
@@ -127,12 +127,12 @@ jobs:
127127
- uses: 'actions/checkout@v4'
128128
129129
- id: 'auth'
130-
uses: 'google-github-actions/auth@v2'
130+
uses: 'google-github-actions/auth@v3'
131131
with:
132132
credentials_json: '${{ secrets.gcp_credentials }}'
133133
134134
- id: 'compute-ssh'
135-
uses: 'google-github-actions/ssh-compute@v1'
135+
uses: 'google-github-actions/ssh-compute@v2'
136136
with:
137137
instance_name: 'example-instance'
138138
zone: 'us-central1-a'
@@ -154,7 +154,7 @@ jobs:
154154
- uses: 'actions/checkout@v4'
155155
156156
- id: 'compute-ssh'
157-
uses: 'google-github-actions/ssh-compute@v1'
157+
uses: 'google-github-actions/ssh-compute@v2'
158158
with:
159159
instance_name: 'example-instance'
160160
zone: 'us-central1-a'

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ branding:
110110
color: 'blue'
111111

112112
runs:
113-
using: 'node20'
113+
using: 'node24'
114114
main: 'dist/main/index.js'
115115
post: 'dist/post/index.js'

bin/runTests.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"build": "rm -rf dist/ && ncc build -m src/main.ts -o dist/main && ncc build -m src/post.ts -o dist/post",
88
"lint": "eslint .",
99
"format": "eslint . --fix",
10-
"test": "bash ./bin/runTests.sh"
10+
"test": "node --require ts-node/register --test-reporter spec --test tests/**/*.test.ts"
1111
},
1212
"engines": {
13-
"node": ">= 20.x",
13+
"node": ">= 24.x",
1414
"npm": ">= 11.x"
1515
},
1616
"repository": {
@@ -34,8 +34,8 @@
3434
"@actions/core": "^1.11.1",
3535
"@actions/exec": "^1.1.1",
3636
"@actions/tool-cache": "^2.0.2",
37-
"@google-github-actions/actions-utils": "^0.8.10",
38-
"@google-github-actions/setup-cloud-sdk": "^1.2.3",
37+
"@google-github-actions/actions-utils": "^1.0.1",
38+
"@google-github-actions/setup-cloud-sdk": "^2.0.0",
3939
"sshpk": "^1.18.0"
4040
},
4141
"devDependencies": {

script-examples/env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
set -eEuo pipefail

workflow-examples/ssh-command-example.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
# Configure Workload Identity Federation and generate an access token.
3636
- id: 'auth'
3737
name: 'Authenticate to Google Cloud'
38-
uses: 'google-github-actions/auth@v2'
38+
uses: 'google-github-actions/auth@v3'
3939
with:
4040
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
4141
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
4242

4343
- name: 'SSH to GCP instance'
4444
id: 'ssh'
45-
uses: 'google-github-actions/ssh-compute@v1'
45+
uses: 'google-github-actions/ssh-compute@v2'
4646
with:
4747
instance_name: 'instance-name'
4848
zone: '${{ env.ZONE }}'

workflow-examples/ssh-script-example.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
# Configure Workload Identity Federation and generate an access token.
3636
- id: 'auth'
3737
name: 'Authenticate to Google Cloud'
38-
uses: 'google-github-actions/auth@v2'
38+
uses: 'google-github-actions/auth@v3'
3939
with:
4040
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
4141
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
4242

4343
- name: 'SSH to GCP instance'
4444
id: 'ssh'
45-
uses: 'google-github-actions/ssh-compute@v1'
45+
uses: 'google-github-actions/ssh-compute@v2'
4646
with:
4747
instance_name: 'instance-name'
4848
zone: '${{ env.ZONE }}'

0 commit comments

Comments
 (0)