File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 33 branches :
44 - main
55name : release-please
6+
7+ permissions :
8+ models : read
9+
610jobs :
711 release-please :
812 runs-on : ubuntu-latest
3640 npx jsr publish
3741 if : ${{ steps.release.outputs.release_created }}
3842
43+ # Generates the social media post
44+ - run : npx @humanwhocodes/social-changelog --org ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} --tag ${{ steps.release.outputs.tag_name }} > social-post.txt
45+ if : ${{ steps.release.outputs.release_created }}
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+
3949 - name : Post release announcement
40- run : ' npx @humanwhocodes/crosspost -t -m -b "eslint/css v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} has been released:\n\n${{ steps.release.outputs.html_url }}" '
50+ run : npx @humanwhocodes/crosspost -t -b - m --file social-post.txt
4151 if : ${{ steps.release.outputs.release_created }}
4252 env :
4353 TWITTER_API_CONSUMER_KEY : ${{ secrets.TWITTER_CONSUMER_KEY }}
You can’t perform that action at this time.
0 commit comments