Skip to content

Commit eb8e8e2

Browse files
committed
ci: add manual release workflow for GitHub Releases
1 parent 487dd4f commit eb8e8e2

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
name: Build and Release
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Read version from package.json
16+
id: version
17+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Run checks
29+
run: npm run ci
30+
31+
- name: Build packages
32+
run: npm run build
33+
34+
- name: Create GitHub Release
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
tag_name: v${{ steps.version.outputs.version }}
38+
name: v${{ steps.version.outputs.version }}
39+
generate_release_notes: true
40+
files: |
41+
dist/github-notifier-pro-chrome.zip
42+
dist/github-notifier-pro-firefox.zip

0 commit comments

Comments
 (0)