diff --git a/.github/workflows/ci-pr.yaml b/.github/workflows/ci-pr.yaml index 09425af..7046e48 100644 --- a/.github/workflows/ci-pr.yaml +++ b/.github/workflows/ci-pr.yaml @@ -16,9 +16,6 @@ jobs: - name: Set up Bun uses: oven-sh/setup-bun@v2 - with: - registry-url: "https://registry.npmjs.org" - scope: "@secretkeylabs" - name: Install dependencies run: bun install --frozen-lockfile @@ -43,8 +40,7 @@ jobs: - name: Publish to NPM package registry # https://github.com/oven-sh/bun/issues/1976 - run: bunx npm@latest publish --scope="@secretkeylabs" --registry="https://registry.npmjs.org/" --access=public --tag pr-$PR_NUMBER + run: bunx npm@latest publish --scope="@secretkeylabs" --registry="https://registry.npmjs.org/:$NPM_TOKEN" --access=public --tag pr-$PR_NUMBER env: NPM_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} PR_NUMBER: ${{ github.event.number }}