diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ce92cab..e08dc1c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,8 @@ jobs: - name: Install Bun uses: oven-sh/setup-bun@v1 + with: + bun-version: 1.1.34 - id: changelog name: Generate changelog @@ -27,25 +29,18 @@ jobs: run: bun install - name: Prepare to JSR publish - run: bun jsr + run: bun scripts/release-jsr.ts - name: Type-check - run: tsc --noEmit + run: bunx tsc --noEmit - name: Publish package to JSR run: bunx jsr publish --allow-dirty - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: "20.x" - registry-url: "https://registry.npmjs.org" - scope: "@gramio" - - name: Publish package to NPM - run: npm publish --access public + run: bun publish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} - name: GitHub Release uses: ncipollo/release-action@v1 diff --git a/bun.lockb b/bun.lockb index 157a75b..2a75567 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 8a2cc9f..4978418 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,7 @@ "prepublishOnly": "bunx pkgroll", "generate": "bun scripts/generate.ts", "lint": "bunx @biomejs/biome check ./src", - "lint:fix": "bun lint --apply", - "jsr": "bun scripts/release-jsr.ts" + "lint:fix": "bun lint --apply" }, "devDependencies": { "@biomejs/biome": "^1.9.4",