diff --git a/.changeset/hot-carrots-brush.md b/.changeset/hot-carrots-brush.md new file mode 100644 index 00000000..049418a7 --- /dev/null +++ b/.changeset/hot-carrots-brush.md @@ -0,0 +1,5 @@ +--- +"@ngrok/mantle": patch +--- + +Fixing the post to slack webhook on mantle release diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index e1c07541..34a6fef9 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -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"}' $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"}' $SLACK_WEBHOOK_URL