Skip to content

Commit 6f80664

Browse files
committed
ci: 🎡 add GitHub action for release.
1 parent 3df6f48 commit 6f80664

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: publish-release-action
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-publish:
13+
name: Build and publish
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Bun
20+
uses: oven-sh/setup-bun@v2
21+
22+
- name: Install dependencies
23+
run: bun install --frozen-lockfile
24+
25+
- name: Build
26+
run: bun run build && rm -rf dist/index.js
27+
28+
- name: Release
29+
uses: softprops/action-gh-release@v2
30+
with:
31+
draft: true
32+
prerelease: true
33+
files: dist/**

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ Customize the userscript metadata through the `userscriptHeader` field in `packa
5858
* [x] Implement watch and auto-reload for development
5959
* [x] Serve the generated userscript during watch mode
6060
* [x] Support serving with proper filename, update URL, and download URL
61-
* [ ] Add GitHub Action for automated releases
61+
* [x] Add GitHub Action for automated releases
62+
* [ ] Import icon and generate base64 for `@icon`
6263

6364
## Acknowledgements
6465

6566
This project draws significant inspiration from the [Greasemonkey Webpack + TypeScript boilerplate](https://github.com/tarkant/greasemonkey-webpack-typescript-boilerplate).
6667

6768
## ⏲ Changelog
6869

70+
* v1.0.1: Add GitHub Action
6971
* v1.0.0: First release

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bun-ts-userscript-starter",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A Greasemonkey/Tampermonkey/Violentmonkey Bun + TypeScript boilerplate",
55
"module": "src/index.ts",
66
"type": "module",

0 commit comments

Comments
 (0)