@@ -47,14 +47,11 @@ jobs:
47
47
48
48
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
49
49
with :
50
- node-version : ' 20.x '
50
+ node-version-file : ' package.json '
51
51
52
52
- name : ' npm build'
53
53
run : ' npm ci && npm run build'
54
54
55
- - name : ' npm lint'
56
- run : ' npm run lint'
57
-
58
55
- name : ' npm test'
59
56
run : ' npm run test'
60
57
63
60
# Direct Workload Identity Federation
64
61
#
65
62
direct_workload_identity_federation :
66
- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
63
+ if : |-
64
+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
67
65
name : ' direct_workload_identity_federation'
68
66
runs-on : ' ${{ matrix.os }}'
69
67
strategy :
82
80
83
81
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
84
82
with :
85
- node-version : ' 20.x '
83
+ node-version-file : ' package.json '
86
84
87
85
- name : ' npm build'
88
86
run : ' npm ci && npm run build'
@@ -116,7 +114,8 @@ jobs:
116
114
# Workload Identity Federation through a Service Account
117
115
#
118
116
workload_identity_federation_through_service_account :
119
- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
117
+ if : |-
118
+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
120
119
name : ' workload_identity_federation_through_service_account'
121
120
runs-on : ' ${{ matrix.os }}'
122
121
strategy :
@@ -135,7 +134,7 @@ jobs:
135
134
136
135
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
137
136
with :
138
- node-version : ' 20.x '
137
+ node-version-file : ' package.json '
139
138
140
139
- name : ' npm build'
141
140
run : ' npm ci && npm run build'
@@ -187,7 +186,8 @@ jobs:
187
186
# Service Account Key JSON
188
187
#
189
188
credentials_json :
190
- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
189
+ if : |-
190
+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
191
191
name : ' credentials_json'
192
192
runs-on : ' ${{ matrix.os }}'
193
193
strategy :
@@ -203,7 +203,7 @@ jobs:
203
203
204
204
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
205
205
with :
206
- node-version : ' 20.x '
206
+ node-version-file : ' package.json '
207
207
208
208
- name : ' npm build'
209
209
run : ' npm ci && npm run build'
@@ -254,7 +254,8 @@ jobs:
254
254
# has permissions to read the file.
255
255
#
256
256
docker :
257
- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
257
+ if : |-
258
+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
258
259
name : ' docker'
259
260
runs-on : ' ubuntu-latest'
260
261
strategy :
@@ -264,7 +265,7 @@ jobs:
264
265
265
266
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
266
267
with :
267
- node-version : ' 20.x '
268
+ node-version-file : ' package.json '
268
269
269
270
- name : ' npm build'
270
271
run : ' npm ci && npm run build'
0 commit comments