build: fix publishing on JSR, take 2
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Mar 2024 10:12:59 +0000 (11:12 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Mar 2024 10:12:59 +0000 (11:12 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/publish-package.yml
CHANGELOG.md
jsr.json

index 7d4bc36b8ae1b87acdb37c8be87c746972e64e15..53565257988ef94a5e2b04d161dd6ea6291549cf 100644 (file)
@@ -49,24 +49,27 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v4
 
-      - name: Setup pnpm
-        uses: pnpm/action-setup@v3
-        with:
-          version: 8
+      - name: Setup pnpm
+        uses: pnpm/action-setup@v3
+        with:
+          version: 8
 
       - name: Setup Node.js
         uses: actions/setup-node@v4
         with:
           node-version: '20.x'
-          cache: 'pnpm'
+          cache: 'pnpm'
 
-      - name: Install Dependencies
-        run: pnpm install --ignore-scripts --frozen-lockfile
+      - name: Install Dependencies
+        run: pnpm install --ignore-scripts --frozen-lockfile
 
       - name: Read package.json version
         id: package-version
         uses: jaywcjlove/github-action-package@main
 
+      - name: Production Build
+        run: pnpm build:prod
+
       - name: Publish Release
         if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
         run: npx jsr publish
index 72fed0bd26073b55aff21a8e6658d52968bdbb78..ed05406dfa80fac2ecc1eb09cc26bf63bd5cfc14 100644 (file)
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 
+### Fixed
+
+- Fix publishing on JSR, take 2.
+
 ## [3.1.24] - 2024-03-27
 
 ### Fixed
index efccb9cb44fc282bab3d6537495b568a349e5215..70a2fb8041e70e535525dfd4555c05af94f3ce05 100644 (file)
--- a/jsr.json
+++ b/jsr.json
@@ -9,6 +9,7 @@
       "README.md",
       "jsr.json",
       "lib/**/*.mjs",
+      "lib/**/*.mjs.map",
       "lib/**/*.ts"
     ]
   }