From 41328ae5bb6579fa40ea51f5931f40105e43cd26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 27 Mar 2024 11:12:59 +0100 Subject: [PATCH] build: fix publishing on JSR, take 2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/publish-package.yml | 17 ++++++++++------- CHANGELOG.md | 4 ++++ jsr.json | 1 + 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 7d4bc36b..53565257 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 72fed0bd..ed05406d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/jsr.json b/jsr.json index efccb9cb..70a2fb80 100644 --- a/jsr.json +++ b/jsr.json @@ -9,6 +9,7 @@ "README.md", "jsr.json", "lib/**/*.mjs", + "lib/**/*.mjs.map", "lib/**/*.ts" ] } -- 2.34.1