Skip to content

Commit

Permalink
add discord release notification script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed Oct 18, 2023
1 parent bd99b2c commit 8d20d81
Show file tree
Hide file tree
Showing 7 changed files with 626 additions and 16 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
packages/**/*.min.js
packages/**/dist/**/*
packages/**/fixtures/**/*
scripts/**/*
.github
.changeset
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ jobs:
# Needs access to publish to npm
NPM_TOKEN: ${{ secrets.CHANGESETS_RELEASE_PR_WORKFLOW_NPM_TOKEN }}

# - name: Generate Notification
# id: notification
# if: steps.changesets.outputs.published == 'true'
# run: message=$(node scripts/notify/index.js '${{ steps.changesets.outputs.publishedPackages }}') && echo ::set-output name=message::${message//$'\n'/'%0A'}
- name: Generate Notification
id: notification
if: steps.changesets.outputs.published == 'true'
run: message=$(node scripts/notify/index.js '${{ steps.changesets.outputs.publishedPackages }}') && echo ::set-output name=message::${message//$'\n'/'%0A'}

# - name: Discord Notification
# if: steps.changesets.outputs.published == 'true'
# id: discord-notification
# env:
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
# uses: Ilshidur/action-discord@0.3.2
# with:
# args: ${{ steps.notification.outputs.message }}
- name: Discord Notification
if: steps.changesets.outputs.published == 'true'
id: discord-notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.3.2
with:
args: ${{ steps.notification.outputs.message }}
Loading

0 comments on commit 8d20d81

Please sign in to comment.