From 25ed8878f889015c4b8aa6468582ed5a6a3e65c3 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sat, 18 Jan 2025 06:45:05 -0500 Subject: [PATCH] ci: enhance publishing workflows by adding verification step --- .github/workflows/jsr-publish.yml | 4 +++- .github/workflows/npm-publish.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jsr-publish.yml b/.github/workflows/jsr-publish.yml index 48bbe9d..4bcd217 100644 --- a/.github/workflows/jsr-publish.yml +++ b/.github/workflows/jsr-publish.yml @@ -20,4 +20,6 @@ jobs: - name: Build run: bun run build - name: Publish package - run: npx jsr publish + run: | + bunx kksh@latest verify --publish + bunx jsr publish diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f55d9ed..ae3b676 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -26,6 +26,7 @@ jobs: - run: bun install - run: bun run build - run: | + bunx kksh@latest verify --publish PACKAGE_NAME=$(jq -r '.name' package.json) PACKAGE_VERSION=$(jq -r '.version' package.json)