File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 3535
3636 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
3737 with :
38- node-version : ' 20.x '
38+ node-version-file : ' package.json '
3939
4040 - name : ' Build'
4141 run : ' npm ci && npm run build'
Original file line number Diff line number Diff line change @@ -31,19 +31,13 @@ jobs:
3131
3232 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
3333 with :
34- node-version : ' 20.x '
34+ node-version-file : ' package.json '
3535
3636 - name : ' npm ci'
3737 run : ' npm ci'
3838
3939 - name : ' npm build'
4040 run : ' npm run build'
4141
42- - name : ' run lint'
43- run : ' npm run lint'
44- # There's no need to run the linter for each operating system, since it
45- # will find the same thing 3x and clog up the PR review.
46- if : ${{ matrix.os == 'ubuntu-latest' }}
47-
4842 - name : ' test'
4943 run : ' npm test'
Original file line number Diff line number Diff line change 1111 "lint" : " eslint ." ,
1212 "test" : " node --require ts-node/register --test-reporter spec --test tests/setup-gcloud.test.ts"
1313 },
14+ "engines" : {
15+ "node" : " 20.x" ,
16+ "npm" : " 10.x"
17+ },
1418 "repository" : {
1519 "type" : " git" ,
1620 "url" : " https://github.com/google-github-actions/setup-gcloud"
You can’t perform that action at this time.
0 commit comments