From 6221eba68e27c3d5bdcb5f14a2fd854e926a5847 Mon Sep 17 00:00:00 2001 From: Christian van der Loo Date: Sun, 10 Nov 2024 14:09:18 -0500 Subject: [PATCH] ci: fix setup --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ada1b3..6919555 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,9 @@ jobs: - uses: oven-sh/setup-bun@v2 with: bun-version: latest - - run: bun i && bun test && bun run build + - run: bun i + - run: bun test + - run: bun run build release-please: name: Release Please runs-on: ubuntu-latest @@ -31,12 +33,17 @@ jobs: name: Create NPM Release runs-on: ubuntu-latest needs: [release-please, test-and-build] - # if: ${{ needs.release-please.outputs.release_created }} + if: ${{ needs.release-please.outputs.release_created }} steps: - uses: actions/checkout@v2 - uses: oven-sh/setup-bun@v2 with: bun-version: latest - - run: bun i && bun run build && bunx npm publish + - uses: actions/setup-node@v4 + with: + node-version: "18.x" + registry-url: "https://registry.npmjs.org" + - run: bun i && bun run build + - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}