From 34c8671b2199c820ac0da90435268a8dad115f45 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Mon, 29 Jul 2024 12:16:40 +0800 Subject: [PATCH] wip --- .github/workflows/bun.yml | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 7 +++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/bun.yml create mode 100644 package.json diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml new file mode 100644 index 0000000..a942406 --- /dev/null +++ b/.github/workflows/bun.yml @@ -0,0 +1,38 @@ +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=esm --outfile=./dist/bin.min.js --minify + + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + path: ./dist + diff --git a/package.json b/package.json new file mode 100644 index 0000000..55d105c --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "at-key-gen-ssh-ed25519", + "version": "1.0.0", + "dependencies": { + "micro-key-producer": "~0.7.0" + } +}