From 635e00830bd3a213f67119bfa319f518cdba8d4a Mon Sep 17 00:00:00 2001 From: Christian van der Loo Date: Sun, 10 Nov 2024 13:56:50 -0500 Subject: [PATCH] ci: use fix npm publishing ci: build before publish ci: fix setup ci: split steps ci: tmp ci: use bun publish ci: use npm config token ci: normalize repository url ci: use npm publish ci: remove cat ci: cat bunfig ci: use bun publish ci: re-enable if --- .github/workflows/ci.yml | 11 ++++++++--- package.json | 5 ++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f070fc1..4af5671 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 @@ -37,6 +39,9 @@ jobs: - uses: oven-sh/setup-bun@v2 with: bun-version: latest - - run: bunx npm publish + registry-url: https://registry.npmjs.org/ + - run: bun i + - run: bun run build + - run: bun publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 9265cc6..956f0ca 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,10 @@ "name": "zustand-computed", "version": "2.0.1", "author": "chrisvander", - "repository": "chrisvander/zustand-computed", + "repository": { + "type": "git", + "url": "git+https://github.com/chrisvander/zustand-computed.git" + }, "main": "dist/index.js", "module": "dist/index.mjs", "devDependencies": {