Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
ci: add publish robot
Browse files Browse the repository at this point in the history
  • Loading branch information
gz65555 committed Dec 25, 2023
1 parent 2f84336 commit 369388e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 369388e

Please sign in to comment.