File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 8
8
branches :
9
9
- main
10
10
11
+ permissions :
12
+ contents : read
13
+ id-token : write # required for GCP Workload Identity federation which we use to login into Google Artifact Registry
14
+ issues : write
15
+ pull-requests : write
16
+ checks : write
17
+
11
18
jobs :
12
19
lint :
13
20
runs-on : ubuntu-latest
14
-
15
21
steps :
16
22
- uses : actions/checkout@v4
17
23
- uses : pnpm/action-setup@v4
22
28
node-version : ' 23'
23
29
cache : ' pnpm'
24
30
registry-url : " https://registry.npmjs.org"
25
- - run : pnpm install --frozen-lockfile
31
+
32
+ - name : Authenticate to Google Cloud
33
+ uses : google-github-actions/auth@v2
34
+ with :
35
+ workload_identity_provider : ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
36
+ service_account : ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }}
37
+
38
+ - name : Install Dependencies
39
+ run : pnpm install --frozen-lockfile
40
+
41
+ - name : Login to GCP Artifact Registry
42
+ run : pnpm artifactregistry-login
43
+
26
44
- run : pnpm lint
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ auto-install-peers=true
2
2
strict-peer-dependencies = false
3
3
registry = https://registry.npmjs.org
4
4
node-linker = hoisted
5
+
Original file line number Diff line number Diff line change 1
1
@aptos-internal:registry = https://us-npm.pkg.dev/aptos-registry/npm/
2
2
//us-npm.pkg.dev/aptos-registry/npm/:always-auth = true
3
+ @jsr:registry = https://npm.jsr.io
Original file line number Diff line number Diff line change 15
15
"start" : " next start -p 3030" ,
16
16
"types:check" : " tsc --noEmit" ,
17
17
"fmt" : " prettier --write '**/*.(css|tsx|ts|jsx|js|cjs|mjs|json|md|html)'" ,
18
- "lint" : " prettier --check '**/*.(css|tsx|ts|jsx|js|cjs|mjs|json|md|html)'"
18
+ "lint" : " prettier --check '**/*.(css|tsx|ts|jsx|js|cjs|mjs|json|md|html)" ,
19
+ "artifactregistry-login" : " pnpm dlx google-artifactregistry-auth"
19
20
},
20
21
"dependencies" : {
21
22
"@aptos-internal/api-gateway-admin-api-client" : " 4.1.0" ,
You can’t perform that action at this time.
0 commit comments