From 369388ee7b33c87d916eb78c0a26a695dde2f90a Mon Sep 17 00:00:00 2001 From: gz65555 Date: Mon, 25 Dec 2023 17:08:29 +0800 Subject: [PATCH] ci: add publish robot --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03549c6..0a8c2a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,5 +25,16 @@ jobs: run: pnpm build - uses: JS-DevTools/npm-publish@v3 + id: publish with: token: ${{ secrets.NPM_TOKEN }} + + - name: Send notification to Dingding + if: ${{ steps.publish.outputs.type }} + uses: mrkou47/action-dingding-webhook@main + env: + DINGDING_SECRET: ${{ secrets.DINGDING_SECRET }} + DINGDING_ACCESS_TOKEN: ${{ secrets.DINGDING_ACCESS_TOKEN }} + with: + title: Release ${{ steps.publish.outputs.name }} + text: ${{ steps.publish.outputs.version }}