This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77 pull_request :
8- branches :
9- - main
8+
9+ permissions :
10+ contents : read
11+ id-token : write # required for GCP Workload Identity federation which we use to login into Google Artifact Registry
1012
1113jobs :
1214 lint :
1315 runs-on : ubuntu-latest
1416
1517 steps :
1618 - uses : actions/checkout@v4
19+
1720 - uses : pnpm/action-setup@v4
1821 with :
1922 version : 9.15.1
23+
2024 - uses : actions/setup-node@v4
2125 with :
2226 node-version : ' 23'
2327 cache : ' pnpm'
2428 registry-url : " https://registry.npmjs.org"
25- - run : pnpm install --frozen-lockfile
29+
30+ - name : Authenticate to Google Cloud
31+ uses : google-github-actions/auth@v2
32+ with :
33+ workload_identity_provider : ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
34+ service_account : ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }}
35+ create_credentials_file : true # This exports the GOOGLE_APPLICATION_CREDENTIALS env var which is commonly used by CLIs
36+
37+ - name : Login to GCP Artifact Registry
38+ run : pnpm artifactregistry-login
39+
40+ - name : Install Dependencies
41+ run : pnpm install --frozen-lockfile
42+
2643 - run : pnpm lint
Original file line number Diff line number Diff line change 66 "dev" : " turbo dev" ,
77 "lint" : " turbo lint" ,
88 "fmt" : " turbo run fmt" ,
9- "spellcheck" : " turbo run spellcheck"
9+ "spellcheck" : " turbo run spellcheck" ,
10+ "artifactregistry-login" : " pnpm dlx google-artifactregistry-auth"
1011 },
1112 "dependencies" : {
1213 "turbo" : " 2.5.0"
You can’t perform that action at this time.
0 commit comments