Skip to content

Commit 3ebdece

Browse files
committed
ci: add social changelog automation
1 parent 270d01e commit 3ebdece

File tree

4 files changed

+438
-0
lines changed

4 files changed

+438
-0
lines changed

.cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"chartjs",
2121
"chrono",
2222
"combak",
23+
"crosspost",
2324
"datelike",
2425
"dicebear",
2526
"docme",
@@ -29,6 +30,7 @@
2930
"docus",
3031
"docyou",
3132
"hexdigit",
33+
"humanwhocodes",
3234
"indicatif",
3335
"lightningcss",
3436
"mockall",

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
id-token: write
1111
contents: write
1212
packages: write
13+
models: read
1314

1415
jobs:
1516
build-binaries:
@@ -216,3 +217,33 @@ jobs:
216217
done
217218
env:
218219
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
220+
221+
- name: Generate Social Changelog
222+
continue-on-error: true
223+
run: |
224+
pnpm social-changelog \
225+
--org azat-io \
226+
--repo eslint-plugin-perfectionist \
227+
--name "ESLint Plugin Perfectionist" \
228+
> social-post.txt
229+
env:
230+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
231+
232+
- name: Post to Social Media
233+
continue-on-error: true
234+
run: |
235+
pnpm crosspost \
236+
--twitter \
237+
--bluesky \
238+
--mastodon \
239+
--file social-post.txt
240+
env:
241+
TWITTER_API_CONSUMER_KEY: ${{ secrets.TWITTER_API_CONSUMER_KEY }}
242+
TWITTER_API_CONSUMER_SECRET: ${{ secrets.TWITTER_API_CONSUMER_SECRET }}
243+
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
244+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
245+
BLUESKY_HOST: ${{ secrets.BLUESKY_HOST }}
246+
BLUESKY_IDENTIFIER: ${{ secrets.BLUESKY_IDENTIFIER }}
247+
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
248+
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
249+
MASTODON_HOST: ${{ secrets.MASTODON_HOST }}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
"@commitlint/config-conventional": "^19.8.0",
6161
"@dicebear/core": "^9.2.2",
6262
"@dicebear/open-peeps": "^9.2.2",
63+
"@humanwhocodes/crosspost": "^0.12.0",
64+
"@humanwhocodes/social-changelog": "^0.4.0",
6365
"@svelte-plugins/tooltips": "^3.0.3",
6466
"@sveltejs/vite-plugin-svelte": "5.0.3",
6567
"@tanstack/svelte-table": "9.0.0-alpha.10",

0 commit comments

Comments
 (0)