From 83989fd8b2a0438b36a3138e21f0bc4fab6c41e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Mon, 2 Sep 2024 16:13:24 +0200 Subject: [PATCH] Update CI --- .github/workflows/ci-main.yaml | 3 ++- .github/workflows/ci-pr.yaml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-main.yaml b/.github/workflows/ci-main.yaml index 65dfe48..be23c68 100644 --- a/.github/workflows/ci-main.yaml +++ b/.github/workflows/ci-main.yaml @@ -25,6 +25,7 @@ jobs: run: bun run ci - name: Publish to NPM package registry - run: bunx npm@latest publish --access=public --tag=latest + # https://github.com/oven-sh/bun/issues/1976 + run: bunx npm@latest publish --scope="@secretkeylabs" --registry="https://registry.npmjs.org/" --access=public --tag=latest env: NPM_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} diff --git a/.github/workflows/ci-pr.yaml b/.github/workflows/ci-pr.yaml index a1c4a46..09425af 100644 --- a/.github/workflows/ci-pr.yaml +++ b/.github/workflows/ci-pr.yaml @@ -43,8 +43,8 @@ jobs: - name: Publish to NPM package registry # https://github.com/oven-sh/bun/issues/1976 - run: bunx npm@latest publish --access=public --tag pr-$PR_NUMBER + run: bunx npm@latest publish --scope="@secretkeylabs" --registry="https://registry.npmjs.org/" --access=public --tag pr-$PR_NUMBER env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} PR_NUMBER: ${{ github.event.number }}