Skip to content

Commit 2b5411e

Browse files
authored
chore: Post release to Bluesky (#157)
1 parent f1099c4 commit 2b5411e

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/release-please.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,18 @@ jobs:
3636
env:
3737
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3838
if: ${{ steps.release.outputs.release_created }}
39-
- run: 'npx @humanwhocodes/tweet "eslint/create-config ${{ steps.release.outputs.tag_name }} has been released: ${{ steps.release.outputs.html_url }}"'
39+
40+
# Post to social media
41+
- name: Post release announcement
42+
run: 'npx @humanwhocodes/crosspost -t -m -b "eslint/create-config v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} has been released:\n\n${{ steps.release.outputs.html_url }}"'
4043
if: ${{ steps.release.outputs.release_created }}
4144
env:
42-
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
43-
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
44-
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
45-
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
46-
- run: 'npx @humanwhocodes/toot "eslint/create-config ${{ steps.release.outputs.tag_name }} has been released: ${{ steps.release.outputs.html_url }}"'
47-
if: ${{ steps.release.outputs.release_created }}
48-
env:
49-
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
50-
MASTODON_HOST: ${{ secrets.MASTODON_HOST }}
45+
TWITTER_API_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
46+
TWITTER_API_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
47+
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
48+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
49+
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
50+
MASTODON_HOST: ${{ secrets.MASTODON_HOST }}
51+
BLUESKY_IDENTIFIER: ${{ vars.BLUESKY_IDENTIFIER }}
52+
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
53+
BLUESKY_HOST: ${{ vars.BLUESKY_HOST }}

0 commit comments

Comments
 (0)