File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @ngrok/mantle " : patch
3
+ ---
4
+
5
+ Slack post will work this time for real i promise u 🦐
Original file line number Diff line number Diff line change @@ -48,10 +48,17 @@ jobs:
48
48
NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
49
49
NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
50
50
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
+
51
58
- name : Post to slack
52
59
if : steps.changesets.outputs.published == 'true'
53
60
env :
54
61
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_PUBLISH_WEBHOOK_URL }}
62
+ MANTLE_VERSION : ${{ env.MANTLE_VERSION }}
55
63
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
You can’t perform that action at this time.
0 commit comments