Skip to content

Commit 088f5c1

Browse files
authored
chore: Add twitter publishing to release workflow (#52)
1 parent f6a2150 commit 088f5c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ jobs:
4747
title: 'chore(release): ${{ steps.extractver.outputs.version }}'
4848
body: 'Version bump in package.json and package-lock.json for release [${{ steps.extractver.outputs.version }}](https://github.com/${{github.repository}}/releases/tag/v${{ steps.extractver.outputs.version }})'
4949
branch: version-bump/${{ steps.extractver.outputs.version }}
50+
- name: Publish information about the release to Twitter
51+
if: steps.initversion.outputs.version != steps.extractver.outputs.version
52+
uses: m1ner79/Github-Twittction@v1.0.1
53+
with:
54+
twitter_status: "Release ${{ steps.extractver.outputs.version }} for ${{github.repository}} is out in the wild 😱💪🍾🎂\n\nThank you for the contribution ${{ github.event.commits[0].author.name }} https://github.com/${{github.repository}}/releases/tag/v${{ steps.extractver.outputs.version }}"
55+
twitter_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }}
56+
twitter_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }}
57+
twitter_access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
58+
twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

0 commit comments

Comments
 (0)