Skip to content

Commit fd3ae76

Browse files
committed
ci: upload userscript
1 parent 256188e commit fd3ae76

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19+
- uses: pnpm/action-setup@v4
1920
- uses: actions/setup-node@v4
2021
with:
2122
node-version: lts/*
23+
cache: 'pnpm'
2224

23-
- run: npx changelogithub
25+
- run: pnpm install
26+
- run: pnpm run build
27+
28+
# Upload the userscript so Greasy Fork can auto-update it via webhook
29+
# See: https://greasyfork.org/en/users/webhook-info
30+
- run: npx changelogithub --assets dist/*.user.js
2431
env:
2532
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)