Skip to content

Commit

Permalink
Merge pull request #43 from chrisvander/fix-npm-publish
Browse files Browse the repository at this point in the history
Correct NPM Publish
  • Loading branch information
chrisvander authored Nov 10, 2024
2 parents f20551e + ad99d54 commit 16687d1
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 16687d1

Please sign in to comment.