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+ * @ dev-minsoo
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ lint-and-build :
11+ name : Lint and Build
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : 22
22+ cache : npm
23+
24+ - name : Install dependencies
25+ run : npm ci
26+
27+ - name : Run lint
28+ run : npm run lint
29+
30+ - name : Run build
31+ run : npm run build
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ release :
13+ name : Release
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : write
17+ issues : write
18+ pull-requests : write
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ - name : Setup Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : 22
30+ cache : npm
31+
32+ - name : Install dependencies
33+ run : npm ci
34+
35+ - name : Run lint
36+ run : npm run lint
37+
38+ - name : Run build
39+ run : npm run build
40+
41+ - name : Create release
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ run : npx -p semantic-release@25 -p @semantic-release/commit-analyzer@13 -p @semantic-release/release-notes-generator@14 -p @semantic-release/github@12 semantic-release
Original file line number Diff line number Diff line change 44
55<p align =" center " >
66 <a href =" LICENSE " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " alt =" license " /></a >
7+ <a href =" https://github.com/dev-minsoo/AlgorithmHub/releases " ><img src =" https://img.shields.io/github/v/release/dev-minsoo/AlgorithmHub?display_name=tag " alt =" release " /></a >
78</p >
89
910<p align =" center " >
Original file line number Diff line number Diff line change 44
55<p align =" center " >
66 <a href =" LICENSE " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " alt =" license " /></a >
7+ <a href =" https://github.com/dev-minsoo/AlgorithmHub/releases " ><img src =" https://img.shields.io/github/v/release/dev-minsoo/AlgorithmHub?display_name=tag " alt =" release " /></a >
78</p >
89
910<p align =" center " >
Original file line number Diff line number Diff line change 1+ export default {
2+ branches : [ "main" ] ,
3+ tagFormat : "v${version}" ,
4+ plugins : [
5+ "@semantic-release/commit-analyzer" ,
6+ "@semantic-release/release-notes-generator" ,
7+ "@semantic-release/github" ,
8+ ] ,
9+ } ;
You can’t perform that action at this time.
0 commit comments