Skip to content

Commit

Permalink
hot-carrots-brush
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-dot-js committed Jan 24, 2025
1 parent d7592c7 commit 595e6c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-carrots-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ngrok/mantle": patch
---

Fixing the post to slack webhook on mantle release
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ jobs:
if: steps.changesets.outputs.published == 'true'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PUBLISH_WEBHOOK_URL }}
MANTLE_VERSION: ${{ steps.changesets.outputs.publishedPackages[0].version }}
run: |
curl -X POST -H 'Content-type: application/json' --data '{"text":"`@ngrok/mantle@${{ env.MANTLE_VERSION }}` published to npm!\nInstall with: `pnpm add -E @ngrok/mantle@${{ env.MANTLE_VERSION }}`\n<https://github.com/ngrok-oss/mantle/releases/tag/v${{ env.MANTLE_VERSION }}|Release Notes>"}' $SLACK_WEBHOOK_URL
MANTLE_VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
curl -X POST -H 'Content-type: application/json' --data '{"text":"`@ngrok/mantle@$MANTLE_VERSION` published to npm!\nInstall with: `pnpm add -E @ngrok/mantle@$MANTLE_VERSION`\n<https://github.com/ngrok-oss/mantle/releases/tag/v$MANTLE_VERSION|Release Notes>"}' $SLACK_WEBHOOK_URL

0 comments on commit 595e6c1

Please sign in to comment.