Skip to content

Commit 58a0e46

Browse files
fix: publish to gar instead (#928)
1 parent 06584b2 commit 58a0e46

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ jobs:
2121
- name: Build
2222
run: npm run build
2323

24+
- uses: google-github-actions/auth@v2
25+
id: auth
26+
with:
27+
token_format: access_token
28+
workload_identity_provider: projects/1030413944741/locations/global/workloadIdentityPools/github-pool/providers/github-provider
29+
service_account: [email protected]
2430
- name: Publish
2531
run: npm run semantic-release
2632
env:
2733
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
NPM_TOKEN: ${{ secrets.HAR_PUBLISH_TOKEN }}
29-
NPM_CONFIG_REGISTRY: ${{ secrets.HAR_NPM_REGISTRY }}
34+
NPM_TOKEN: ${{ steps.auth.outputs.access_token }}
35+
NPM_CONFIG_REGISTRY: ${{ secrets.GAR_NPM_PUBLISH_REGISTRY }}

0 commit comments

Comments
 (0)