Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit da3188a

Browse files
committed
[gha] fix artifactregistry login
1 parent a882a34 commit da3188a

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,35 @@ on:
55
branches:
66
- main
77
pull_request:
8-
branches:
9-
- main
108

119
jobs:
1210
lint:
1311
runs-on: ubuntu-latest
1412

1513
steps:
1614
- uses: actions/checkout@v4
15+
1716
- uses: pnpm/action-setup@v4
1817
with:
1918
version: 9.15.1
19+
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version: '23'
2323
cache: 'pnpm'
2424
registry-url: "https://registry.npmjs.org"
25-
- run: pnpm install --frozen-lockfile
25+
26+
- name: Authenticate to Google Cloud
27+
uses: google-github-actions/auth@v2
28+
with:
29+
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
30+
service_account: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }}
31+
create_credentials_file: true # This exports the GOOGLE_APPLICATION_CREDENTIALS env var which is commonly used by CLIs
32+
33+
- name: Login to GCP Artifact Registry
34+
run: pnpm artifactregistry-login
35+
36+
- name: Install Dependencies
37+
run: pnpm install --frozen-lockfile
38+
2639
- run: pnpm lint

0 commit comments

Comments
 (0)