File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ name : DEV pipeline
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - master
7+
8+ jobs :
9+ check :
10+ name : Source revision
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : ' 20.11.1'
18+
19+ - run : npm ci
20+ - run : npm run format:check
21+ - run : npm run lint:check
22+ - run : npm run build
Original file line number Diff line number Diff line change 1+ name : Release pipeline
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ check :
10+ name : Source revision
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : ' 20.11.1'
18+
19+ - run : npm ci
20+ - run : npm run format:check
21+ - run : npm run lint:check
22+ - run : npm run build
23+
24+ tag :
25+ name : Version tag
26+ needs : [check]
27+ runs-on : ubuntu-latest
28+ outputs :
29+ status : ${{ steps.create_tag.outputs.successful }}
30+ version : ${{ steps.create_tag.outputs.version }}
31+
32+ steps :
33+ - uses : actions/checkout@v4
34+
35+ - uses : jaywcjlove/create-tag-action@main
36+ id : create_tag
37+ with :
38+ package-path : ./package.json
39+ release : true
40+
41+ package :
42+ name : Build docker images
43+ needs : [check, tag]
44+ if : needs.tag.outputs.status == 'true'
45+ runs-on : ubuntu-latest
46+ steps :
47+ - uses : actions/checkout@v4
48+ - uses : actions/setup-node@v4
49+ with :
50+ node-version : ' 20.11.1'
51+ registry-url : ' https://registry.npmjs.org'
52+ - run : npm ci
53+ - run : npm build
54+ - run : npm publish
55+ env :
56+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments