Skip to content

Commit

Permalink
fix: npm publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
sobird committed Feb 18, 2025
1 parent cbc2a48 commit 6d20a63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
run: |
pnpm run build
npm publish --access public
npm publish --access public --registry=https://registry.npmjs.org/
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"main": "index.js",
"bin": {
"xzai": "./dist/index.js"
"xzai": "index.ts"
},
"scripts": {
"start": "tsx index.ts",
Expand Down Expand Up @@ -59,5 +59,8 @@
"typescript": "^5.7.3",
"vitest": "^3.0.5",
"ws": "^8.18.0"
}
},
"files": [
"dist"
]
}

0 comments on commit 6d20a63

Please sign in to comment.