From f47e20a8f276d094567fe25c58bffd4970e571e5 Mon Sep 17 00:00:00 2001 From: Aaron Steinfeld Date: Sat, 28 Jun 2025 13:40:30 -0400 Subject: [PATCH] fix: publish to gar instead --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 42ee5c34..8df78ac7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,9 +21,15 @@ jobs: - name: Build run: npm run build + - uses: google-github-actions/auth@v2 + id: auth + with: + token_format: access_token + workload_identity_provider: projects/1030413944741/locations/global/workloadIdentityPools/github-pool/providers/github-provider + service_account: github-publisher@hypertrace-repos.iam.gserviceaccount.com - name: Publish run: npm run semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.HAR_PUBLISH_TOKEN }} - NPM_CONFIG_REGISTRY: ${{ secrets.HAR_NPM_REGISTRY }} + NPM_TOKEN: ${{ steps.auth.outputs.access_token }} + NPM_CONFIG_REGISTRY: ${{ secrets.GAR_NPM_PUBLISH_REGISTRY }}