diff --git a/.github/workflows/ci-main.yaml b/.github/workflows/ci-main.yaml index be23c68..e37711f 100644 --- a/.github/workflows/ci-main.yaml +++ b/.github/workflows/ci-main.yaml @@ -24,8 +24,13 @@ jobs: - name: Run CI run: bun run ci + - name: Prepare .npmrc for publishing + run: | + echo "@secretkeylabs:registry=https://registry.npmjs.org/" > .npmrc + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} + - 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=latest - env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} + run: bunx npm@latest publish --access=public --tag=latest