From 2febfab03e766c6698ee566dfb689c84921dab62 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Wed, 8 Jan 2025 04:05:50 -0500 Subject: [PATCH] chore: add mod.ts file and update GitHub Actions workflow to use Node.js and pnpm --- .github/workflows/jsr-publish.yml | 18 +++++++++++++++--- mod.ts | 0 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 mod.ts diff --git a/.github/workflows/jsr-publish.yml b/.github/workflows/jsr-publish.yml index f9b72f6..0aec458 100644 --- a/.github/workflows/jsr-publish.yml +++ b/.github/workflows/jsr-publish.yml @@ -14,10 +14,22 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: latest + - name: Install dependencies - run: bun install + run: pnpm install + - name: Build - run: bun run build + run: pnpm build + - name: Publish package run: npx jsr publish diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..e69de29