From 06672a40805124fbf9518cc04af69acfde4f9baf Mon Sep 17 00:00:00 2001 From: kravetsone <57632712+kravetsone@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:26:20 +0300 Subject: [PATCH] chore: use bun publish --- .github/workflows/publish.yml | 17 ++++++----------- bun.lockb | Bin 47083 -> 47083 bytes package.json | 3 +-- 3 files changed, 7 insertions(+), 13 deletions(-) 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 157a75bd3380686ca81f934dc9a5e9b1d71d26c0..2a755672e43d2971d4ed8d31f554d45841b5aef8 100644 GIT binary patch delta 21 acmaF;p6T^_rVS}|Y+4K;usN%)(Gmb=(+AK1 delta 21 ccmaF;p6T^_rVS}|Y;hKP270EOv+5cx0dU<2{Qv*} 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",