Skip to content

Commit

Permalink
chore: use bun publish
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 8, 2024
1 parent c9341a4 commit 6f6ae9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: CI

on:
push:
Expand All @@ -7,19 +7,14 @@ on:

jobs:
release:
name: Release
name: release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Node.js
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'

- name: Install Bun
uses: oven-sh/setup-bun@v2

Expand All @@ -38,9 +33,9 @@ jobs:
run: bun run build

- name: Publish to npm
run: npm publish --access public --no-git-checks
run: bun publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Create GitHub release
run: npx changelogithub
Expand Down
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install]
registry = { url = "https://registry.npmjs.org/", token = "$BUN_AUTH_TOKEN" }

0 comments on commit 6f6ae9d

Please sign in to comment.