fix: fix some bug

This commit is contained in:
kite 2026-05-22 15:30:49 +08:00
parent f054bb799e
commit 44120e28b6
9 changed files with 298 additions and 57 deletions

View file

@ -77,9 +77,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Inject version from tag
run: jq --arg v "${GITHUB_REF_NAME#v}" '.version = $v' package.json > package.json.tmp && mv package.json.tmp package.json
- name: Publish to npm
run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}