Skip to content

Commit cb0cbfb

Browse files
committed
build: fix github actions
1 parent 2bb2e79 commit cb0cbfb

File tree

2 files changed

+20
-28
lines changed

2 files changed

+20
-28
lines changed

.github/workflows/build-branch.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
name: Run tests
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- name: Use Node.js 18
15-
uses: actions/setup-node@v3
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js 20
15+
uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version: 20
1818
- name: Install dependencies
1919
run: find . -name 'package-lock.json' -execdir npm ci \;
2020
- name: Run server
@@ -31,18 +31,14 @@ jobs:
3131

3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535

36-
- run: |
37-
sudo apt-get install python2.7
38-
export CLOUDSDK_PYTHON="/usr/bin/python2"
39-
40-
- uses: google-github-actions/setup-gcloud@v0
36+
- id: auth
37+
uses: google-github-actions/auth@v2
4138
with:
42-
version: "286.0.0"
43-
project_id: ${{ secrets.GCP_BUILD_PROJECT_ID }}
44-
service_account_email: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_EMAIL }}
45-
service_account_key: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }}
39+
credentials_json: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }}
40+
41+
- uses: google-github-actions/setup-gcloud@v2
4642

4743
- name: Extract branch name
4844
shell: bash

.github/workflows/build-latest.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
name: Run tests
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Use Node.js 18
14-
uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- name: Use Node.js 20
14+
uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
- name: Install dependencies
1818
run: find . -name 'package-lock.json' -execdir npm ci \;
1919
- name: Run server
@@ -30,18 +30,14 @@ jobs:
3030

3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434

35-
- run: |
36-
sudo apt-get install python2.7
37-
export CLOUDSDK_PYTHON="/usr/bin/python2"
38-
39-
- uses: google-github-actions/setup-gcloud@v0
35+
- id: auth
36+
uses: google-github-actions/auth@v2
4037
with:
41-
version: "286.0.0"
42-
project_id: ${{ secrets.GCP_BUILD_PROJECT_ID }}
43-
service_account_email: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_EMAIL }}
44-
service_account_key: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }}
38+
credentials_json: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }}
39+
40+
- uses: google-github-actions/setup-gcloud@v2
4541

4642
- name: Build
4743
run: |-

0 commit comments

Comments
 (0)