diff --git a/.github/workflows/cd-publish.yml b/.github/workflows/cd-publish.yml index f6f33212269..67a1092e29a 100644 --- a/.github/workflows/cd-publish.yml +++ b/.github/workflows/cd-publish.yml @@ -44,4 +44,15 @@ jobs: - name: Publish NPM packages env: NPM_SECRET_TOKEN: ${{ secrets.NPM_TOKEN }} - run: yarn publish-ci -n $NPM_SECRET_TOKEN \ No newline at end of file + run: yarn publish-ci -n $NPM_SECRET_TOKEN + + - name: send notification message on failure + if: failure() + uses: appleboy/discord-action@master + with: + webhook_id: ${{ secrets.WEBHOOK_ID }} + webhook_token: ${{ secrets.WEBHOOK_TOKEN }} + username: "GitHub Automated notification" + message: "FAST publishing failed" + + \ No newline at end of file