4747
4848 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
4949 with :
50- node-version : ' 20.x '
50+ node-version-file : ' package.json '
5151
5252 - name : ' npm build'
5353 run : ' npm ci && npm run build'
6363 # Direct Workload Identity Federation
6464 #
6565 direct_workload_identity_federation :
66- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
66+ if : |-
67+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
6768 name : ' direct_workload_identity_federation'
6869 runs-on : ' ${{ matrix.os }}'
6970 strategy :
8283
8384 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
8485 with :
85- node-version : ' 20.x '
86+ node-version-file : ' package.json '
8687
8788 - name : ' npm build'
8889 run : ' npm ci && npm run build'
@@ -116,7 +117,8 @@ jobs:
116117 # Workload Identity Federation through a Service Account
117118 #
118119 workload_identity_federation_through_service_account :
119- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
120+ if : |-
121+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
120122 name : ' workload_identity_federation_through_service_account'
121123 runs-on : ' ${{ matrix.os }}'
122124 strategy :
@@ -135,7 +137,7 @@ jobs:
135137
136138 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
137139 with :
138- node-version : ' 20.x '
140+ node-version-file : ' package.json '
139141
140142 - name : ' npm build'
141143 run : ' npm ci && npm run build'
@@ -187,7 +189,8 @@ jobs:
187189 # Service Account Key JSON
188190 #
189191 credentials_json :
190- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
192+ if : |-
193+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
191194 name : ' credentials_json'
192195 runs-on : ' ${{ matrix.os }}'
193196 strategy :
@@ -203,7 +206,7 @@ jobs:
203206
204207 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
205208 with :
206- node-version : ' 20.x '
209+ node-version-file : ' package.json '
207210
208211 - name : ' npm build'
209212 run : ' npm ci && npm run build'
@@ -254,7 +257,8 @@ jobs:
254257 # has permissions to read the file.
255258 #
256259 docker :
257- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
260+ if : |-
261+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
258262 name : ' docker'
259263 runs-on : ' ubuntu-latest'
260264 strategy :
@@ -264,7 +268,7 @@ jobs:
264268
265269 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
266270 with :
267- node-version : ' 20.x '
271+ node-version-file : ' package.json '
268272
269273 - name : ' npm build'
270274 run : ' npm ci && npm run build'
0 commit comments