Skip to content

Commit

Permalink
chore: use bun publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Nov 29, 2024
1 parent d1b3edb commit 06672a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 06672a4

Please sign in to comment.