Skip to content

wip

wip #4

Workflow file for this run

name: Bundle
on: push
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 3
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Build the pkg
run: |-
mkdir ./dist
bun install
bun build ./src/main.ts --target=node --format=esm --outfile=./dist/bin.js
bun build ./src/main.ts --target=node --format=iife --outfile=./dist/bin.min.js --minify
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
path: ./dist