From: Jérôme Benoit Date: Wed, 27 Mar 2024 10:12:59 +0000 (+0100) Subject: build: fix publishing on JSR, take 2 X-Git-Tag: v3.1.25~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=41328ae5bb6579fa40ea51f5931f40105e43cd26;p=poolifier.git build: fix publishing on JSR, take 2 Signed-off-by: Jérôme Benoit --- 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" ] }