Skip to content

Commit 6e59a1f

Browse files
authored
ci: Include social post summarizer (#47)
* ci: Include social post summarizer * Fix package-lock.json * Fix lint error
1 parent 1af9805 commit 6e59a1f

File tree

4 files changed

+706
-93
lines changed

4 files changed

+706
-93
lines changed

.github/workflows/release-please.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ jobs:
5252
git push -f origin main:v${{ steps.release.outputs.major }}.x
5353
git push -f origin main:latest
5454
if: ${{ steps.release.outputs.release_created }}
55+
56+
# Generates the social media post
57+
- run: node tools/social-post.js > social-post.txt
58+
if: ${{ steps.release.outputs.release_created }}
59+
env:
60+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5561

5662
# Tweets out release announcement
57-
- run: 'npx @humanwhocodes/crosspost -t -b -m "Mentoss v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} has been released!\n\n${{ github.event.repository.html_url }}/releases/tag/${{ steps.release.outputs.tag_name }}"'
63+
- run: 'npx @humanwhocodes/crosspost -t -b -m -f social-post.txt'
5864
if: ${{ steps.release.outputs.release_created }}
5965
env:
6066
TWITTER_API_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}

0 commit comments

Comments
 (0)