From 1efa30fe94dd098076f08a947144fe0643a75e1a Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Mon, 5 Aug 2024 22:50:38 -0700 Subject: [PATCH] fix(ci): publish npm from `/npm` directory --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e49b12..099da7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 with: - bun-version: latest + bun-version: 1.1.12 - name: gzip (bytes) run: | @@ -80,11 +80,13 @@ jobs: - name: "Publish → npm" if: ${{ !contains(github.ref, '-next.') }} run: npm publish --provenance --access public + working-directory: ./npm env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: "Publish → npm (pre-release)" if: ${{ contains(github.ref, '-next.') }} run: npm publish --tag next --provenance --access public + working-directory: ./npm env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}