File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ # .github/workflows/release.yml
2
+
3
+ name : Release
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+ - main
9
+ jobs :
10
+ release :
11
+ name : Release
12
+ runs-on : ubuntu-18.04
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+ with :
17
+ fetch-depth : 0
18
+ - name : Setup Node.js
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : 12
22
+ - name : Install jq yq
23
+ run : |
24
+ sudo wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /usr/bin/jq &&\
25
+ sudo chmod +x /usr/bin/jq
26
+ sudo pip install yq
27
+ jq --version
28
+ yq --version
29
+ - name : Install gitmoji-semver
30
+ run : |
31
+ git clone https://github.com/nkmr-jp/gitmoji-semver -b v2.0.1
32
+ - name : Generate semantic-release configs
33
+ working-directory : ./gitmoji-semver
34
+ run : |
35
+ make scaffold F=../.semver.yml O=..
36
+ - name : Release
37
+ working-directory : ./.release
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
41
+ run : |
42
+ npm install
43
+ npx semantic-release
Original file line number Diff line number Diff line change
1
+ # .semver.yml
2
+
3
+ # Release Branches
4
+ branches : [ master, main ]
5
+
6
+ # gitmoji semver settings
7
+ # You can override the default values to suit your project.
8
+ semver :
9
+ # minor:
10
+ # - lipstick
11
+ # patch:
12
+ # - art
13
+ # none: # gitmoji.json "semver": null is convert to none
14
+ # - pencil2
15
+ ignore : # not add in release-template.hbs
16
+ - construction
You can’t perform that action at this time.
0 commit comments