Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,18 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# No need to use another action to retreive release infos, there in the event payload
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=published#release
# data example: https://github.com/api/repos/gridsuite/commons-ui/releases/tags/v0.61.3
- name: Send notification to the team
uses: dawidd6/action-send-mail@v3
with:
connection_url: ${{secrets.NOTIF_MAIL_ADDRESS}}
#ignore_cert: true
from: '"${{ github.actor }}" <${{secrets.NOTIF_MAIL_SENDER}}>'
to: ${{secrets.NOTIF_MAIL_RECIPIENTS_RELEASE}}
reply_to: [email protected]
subject: Release of ${{ github.repository }} ${{ github.event.release.name }} by ${{ event.release.author.login }}
body: ${{ github.event.release.body }}
convert_markdown: true