diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index aa4aa2f..ad75a42 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,18 +11,7 @@ on: workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - - name: Test - run: | - bun install - bun test --coverage - publish-npm: - needs: build runs-on: ubuntu-latest permissions: contents: read @@ -33,6 +22,13 @@ jobs: with: node-version: 22 registry-url: https://registry.npmjs.org/ + + - uses: pnpm/action-setup@v2 + with: + version: latest + - uses: oven-sh/setup-bun@v2 + - run: pnpm install + - run: pnpm build - run: | PACKAGE_NAME=$(jq -r '.name' package.json) PACKAGE_VERSION=$(jq -r '.version' package.json) diff --git a/package.json b/package.json index 41d9fc5..9d034b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.kunkun.sh/", "name": "kunkun-ext-ip-info", - "version": "0.0.8", + "version": "0.0.9", "module": "index.ts", "repository": "https://github.com/kunkunsh/kunkun-ext-ip-info", "type": "module",