File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments