Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,24 @@ on:
- 'v*'

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

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

- name: Install Bun
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Setup pantry
uses: stacksjs/[email protected]
with:
setup-only: 'true'

- name: Use cached node_modules
uses: actions/cache@v4
Expand All @@ -30,7 +37,7 @@ jobs:
run: bun install

- name: Publish to npm
run: bun publish --access public
run: pantry publish --access public
env:
BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

Expand All @@ -40,7 +47,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Attach Binaries
uses: softprops/action-gh-release@v2
uses: stacksjs/action-[email protected]
with:
files: |
bin/bin-name-linux-x64
Expand Down
Loading