Skip to content

Commit 1d83e1d

Browse files
committed
Slack post will work this time for real i promise u 🦐
1 parent 05e0fdb commit 1d83e1d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.changeset/early-pumpkins-ring.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ngrok/mantle": patch
3+
---
4+
5+
Slack post will work this time for real i promise u 🦐

.github/workflows/publish-npm.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,17 @@ jobs:
4848
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
4949
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
5050

51+
- name: Extract MANTLE_VERSION
52+
if: steps.changesets.outputs.published == 'true'
53+
run: |
54+
echo "Extracting MANTLE_VERSION..."
55+
VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
56+
echo "MANTLE_VERSION=$VERSION" >> $GITHUB_ENV
57+
5158
- name: Post to slack
5259
if: steps.changesets.outputs.published == 'true'
5360
env:
5461
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PUBLISH_WEBHOOK_URL }}
62+
MANTLE_VERSION: ${{ env.MANTLE_VERSION }}
5563
run: |
56-
MANTLE_VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
57-
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
64+
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

0 commit comments

Comments
 (0)