Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fresh-frogs-like.md

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📣 note: This is from earlier PR #2853 before we introduced changesets. I'm adding this now for upcoming releases and testing!

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@slack/bolt": patch
---

fix: correct InvalidCustomPropertyError code and MemoryStore promise handling
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,31 @@ jobs:
run: npm ci --verbose

- name: Publish to npm and create GitHub releases
id: changesets
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
createGithubReleases: true
publish: npm run changeset -- publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get publication details
if: steps.changesets.outputs.published == 'true'
id: release
run: |
echo "url=$(gh release view --json url -q .url)" >> "$GITHUB_OUTPUT"
echo "message=$(echo "$PUBLISHED_PACKAGES" | jq -r '.[] | "\(.name)@\(.version)"' | paste -sd ', ' -)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISHED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐢 note: This isn't beautiful parsing but I believe it's stable enough for decent outputs we expect:

  • publishedPackages - A JSON array to present the published packages. The format is [{"name": "@xx/xx", "version": "1.2.0"}, {"name": "@xx/xy", "version": "0.8.9"}]

🔗 https://github.com/changesets/action#outputs


- name: Notify Slack
if: steps.changesets.outputs.published == 'true'
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
with:
webhook: ${{ secrets.SLACK_RELEASE_ANNOUNCEMENTS_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
action_url: "${{ steps.release.outputs.url }}"
message: "${{ steps.release.outputs.message }}"
repository: "${{ github.repository }}"