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 9, 2024
1 parent 7caf9ca commit cff1276
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: Setup 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 @@ -34,13 +29,10 @@ jobs:
- name: Install Dependencies
run: bun install

- name: Build the release
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: bunx 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" }
2 changes: 1 addition & 1 deletion pkgx.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dependencies:
bun.sh: ^1.1.29
bun.sh: ^1.1.30

0 comments on commit cff1276

Please sign in to comment.