Skip to content

Commit 81eb2c7

Browse files
committed
build: fix release workflow
1 parent 378e0f9 commit 81eb2c7

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 17 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
@@ -39,24 +39,20 @@ jobs:
3939
MINOR_V_TAG=$(echo $FULL_V_TAG | sed -r -e 's/.*-(\w+)/\1/' -e 's/(^[0-9]+\.[0-9]+).*/\1/')
4040
MAJOR_V_TAG=$(echo $MINOR_V_TAG | sed -r -e 's/(^[a-z]+).*/\1/' -e 's/(^[0-9]+).*/\1/')
4141
42-
echo ::set-output name=full_version_tag::$FULL_V_TAG
43-
echo ::set-output name=minor_version_tag::$MINOR_V_TAG
44-
echo ::set-output name=major_version_tag::$MAJOR_V_TAG
42+
echo "full_version_tag=$FULL_V_TAG" >> $GITHUB_OUTPUT
43+
echo "minor_version_tag=$MINOR_V_TAG" >> $GITHUB_OUTPUT
44+
echo "major_version_tag=$MAJOR_V_TAG" >> $GITHUB_OUTPUT
4545
4646
- name: Checkout
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4848

49-
- run: |
50-
sudo apt-get install python2.7
51-
export CLOUDSDK_PYTHON="/usr/bin/python2"
49+
- id: auth
50+
uses: google-github-actions/auth@v2
51+
with:
52+
credentials_json: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }}
5253

5354
# Setup gcloud CLI
54-
- uses: google-github-actions/setup-gcloud@v0
55-
with:
56-
version: "286.0.0"
57-
project_id: ${{ secrets.GCP_BUILD_PROJECT_ID }}
58-
service_account_email: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_EMAIL }}
59-
service_account_key: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }}
55+
- uses: google-github-actions/setup-gcloud@v2
6056

6157
# Build and push image to Google Container Registry
6258
- name: Build

0 commit comments

Comments
 (0)