@@ -27,37 +27,37 @@ jobs:
2727 fail-fast : false
2828 matrix :
2929 os :
30- - ' ubuntu-latest'
31- - ' windows-latest'
32- - ' macos-latest'
30+ - ' ubuntu-latest'
31+ - ' windows-latest'
32+ - ' macos-latest'
3333
3434 steps :
35- - uses : ' actions/checkout@v4'
36-
37- - uses : ' actions/setup-node@v4'
38- with :
39- node-version : ' 20.x '
40-
41- - name : ' npm build'
42- run : ' npm ci && npm run build'
43-
44- - name : ' npm lint'
45- # There's no need to run the linter for each operating system, since it
46- # will find the same thing 3x and clog up the PR review.
47- if : ${{ matrix.os == 'ubuntu-latest' }}
48- run : ' npm run lint'
49-
50- # Only authenticate if this is a full CI run.
51- - uses : ' google- github-actions/auth@v2 '
52- with :
53- workload_identity_provider : ' ${{ vars.WIF_PROVIDER_NAME }} '
54- service_account : ' ${{ vars.SERVICE_ACCOUNT_EMAIL }}'
55- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
56-
57- # The secrets will only be injected in pushes to main or from maintainers.
58- # If they aren't present, the associated steps are skipped.
59- - name : ' npm test'
60- run : ' npm run test'
61- env :
62- UPLOAD_CLOUD_STORAGE_TEST_BUCKET : ' ${{ vars.BUCKET_NAME }}'
63- UPLOAD_CLOUD_STORAGE_TEST_PROJECT : ' ${{ vars.PROJECT_ID }}'
35+ - uses : ' actions/checkout@v4'
36+
37+ - uses : ' actions/setup-node@v4'
38+ with :
39+ node-version : ' 20.12.x ' # https://github.com/nodejs/node/issues/53033
40+
41+ - name : ' npm build'
42+ run : ' npm ci && npm run build'
43+
44+ - name : ' npm lint'
45+ # There's no need to run the linter for each operating system, since it
46+ # will find the same thing 3x and clog up the PR review.
47+ if : ${{ matrix.os == 'ubuntu-latest' }}
48+ run : ' npm run lint'
49+
50+ # Only authenticate if this is a full CI run.
51+ - if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
52+ uses : ' google-github-actions/auth@v2 '
53+ with :
54+ workload_identity_provider : ' ${{ vars.WIF_PROVIDER_NAME }}'
55+ service_account : ' ${{ vars.SERVICE_ACCOUNT_EMAIL }} '
56+
57+ # The secrets will only be injected in pushes to main or from maintainers.
58+ # If they aren't present, the associated steps are skipped.
59+ - name : ' npm test'
60+ run : ' npm run test'
61+ env :
62+ UPLOAD_CLOUD_STORAGE_TEST_BUCKET : ' ${{ vars.BUCKET_NAME }}'
63+ UPLOAD_CLOUD_STORAGE_TEST_PROJECT : ' ${{ vars.PROJECT_ID }}'
0 commit comments