Skip to content

Commit

Permalink
ci: use fix npm publishing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chrisvander committed Nov 10, 2024
1 parent f20551e commit 635e008
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 635e008

Please sign in to comment.