From 029077042302818e2d9d399b7d21fdf71992f46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 26 Oct 2024 13:58:03 +0200 Subject: [PATCH] build: do not run post install scripts at releasing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/release.yml | 7 ++----- package.json | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d212ab..31fc17e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: bun-version: latest - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install --ignore-scripts --frozen-lockfile - name: Build run: pnpm build @@ -60,10 +60,7 @@ jobs: cache: pnpm - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build - run: pnpm build + run: pnpm install --ignore-scripts --frozen-lockfile - name: Read package.json version id: package-version diff --git a/package.json b/package.json index 3c5b3ef..fee76a8 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "postinstall": "pnpm exec simple-git-hooks", "dev": "tsup --watch", "build": "tsup", - "prepublishOnly": "rm -rf ./package && clean-publish", + "prepublishOnly": "pnpm build && rm -rf ./package && clean-publish", "postpublish": "rm -rf ./package", "typecheck": "tsc --noEmit", "lint": "eslint src test examples tsup.config.ts",