From def3bc088cc947a567fb334beef01db8b1c00220 Mon Sep 17 00:00:00 2001 From: Owais Jamil Date: Tue, 21 Oct 2025 00:43:11 -0500 Subject: [PATCH] build: update automated build + publish --- .github/workflows/publish-jsr.yml | 21 +++++++++++++++++++-- lib/deno.json | 6 ++++-- lib/jsr.json | 2 +- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-jsr.yml b/.github/workflows/publish-jsr.yml index a3d316f..275b980 100644 --- a/.github/workflows/publish-jsr.yml +++ b/.github/workflows/publish-jsr.yml @@ -13,6 +13,23 @@ jobs: contents: read id-token: write # The OIDC ID token is used for authentication with JSR. steps: - - uses: actions/checkout@v4 - - run: npx jsr publish + - name: Checkout + uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 24 + cache: pnpm + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Build + run: pnpm build + working-directory: lib + - name: Publish to JSR + run: npx jsr publish working-directory: lib diff --git a/lib/deno.json b/lib/deno.json index 3815595..cdd0fd4 100644 --- a/lib/deno.json +++ b/lib/deno.json @@ -1,7 +1,8 @@ { "name": "@voltx/core", "version": "0.3.0", - "exports": "./src/index.ts", + "license": "MIT", + "exports": { ".": "./src/index.ts", "./debug": "./src/debug.ts", "./css": "./dist/voltx.css" }, "imports": { "$core/": "./src/core/", "$plugins/": "./src/plugins/", @@ -9,5 +10,6 @@ "$debug": "./src/debug.ts", "$vebug": "./src/debug.ts", "$volt": "./src/index.ts" - } + }, + "publish": { "include": ["dist", "README.md", "LICENSE"] } } diff --git a/lib/jsr.json b/lib/jsr.json index 4767333..52e1dee 100644 --- a/lib/jsr.json +++ b/lib/jsr.json @@ -3,5 +3,5 @@ "version": "0.3.0", "license": "MIT", "exports": { ".": "./src/index.ts", "./debug": "./src/debug.ts", "./css": "./dist/volt.css" }, - "publish": { "include": ["src", "dist", "README.md", "LICENSE"] } + "publish": { "include": ["dist", "README.md", "LICENSE"] } } -- 2.51.2