Skip to content

Commit 2cf1c5f

Browse files
committed
📝 Update README
1 parent 9a66a2f commit 2cf1c5f

File tree

6 files changed

+32
-19
lines changed

6 files changed

+32
-19
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
yq --version
2727
- name: Install gitmoji-semver
2828
run: |
29-
git clone https://github.com/nkmr-jp/gitmoji-semver -b v1.6.0
29+
git clone https://github.com/nkmr-jp/gitmoji-semver -b develop
3030
- name: Generate semantic-release configs
3131
working-directory: ./gitmoji-semver
3232
run: |
33-
make scaffold V=v3.0.0 F=../.semver.yml O=..
33+
make scaffold V=v3.0.0 F=../.semver.yml O=.. T=simple
3434
- name: Release
3535
working-directory: ./.release
3636
env:

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ F=.semver.yml
55
SEMVER_FILE=$(F)
66
O=./
77
OUT_DIR=$(O)
8-
M=""
9-
MODE=$(M)
8+
T=""
9+
TEMPLATE_TYPE=$(T)
1010

1111
BASE_FILE=https://raw.githubusercontent.com/carloscuesta/gitmoji/$(GITMOJI_VERSION)/src/data/gitmojis.json
1212

@@ -37,13 +37,13 @@ help:
3737
@echo " V=<version> $(BLUE)Specify the base gitmoji version$(RESET)"
3838
@echo " F=<filepath> $(BLUE)Specify .semver.yml file path$(RESET)"
3939
@echo " O=<output dir> $(BLUE)Specify semantic-release setting files output directory$(RESET)"
40-
@echo " M=<mode> $(BLUE)Specify release template MODE 'default or simple'$(RESET)"
40+
@echo " T=<template type> $(BLUE)Specify release template type 'default or simple'$(RESET)"
4141
@echo
4242
@echo "$(GREEN)Examples:$(RESET)"
4343
@echo " make gen V=v3.0.0 F=./.semver.yml"
4444
@echo " make list"
4545
@echo " make scaffold V=v3.0.0 F=./.semver.yml O=./.playground"
46-
@echo " make scaffold V=v3.0.0 F=./.semver.yml O=./.playground M=simple"
46+
@echo " make scaffold V=v3.0.0 F=./.semver.yml O=./.playground T=simple"
4747
@echo
4848

4949
# Generate gitmojis.json with semver field
@@ -91,13 +91,13 @@ list:
9191
scaffold: gen
9292
@echo
9393
@echo "$(PURPLE)# SCAFFOLD: Generate semantic-release setting files$(RESET)"
94-
node gen-release-template.js $(MODE)
94+
node gen-release-template.js $(TEMPLATE_TYPE)
9595
mkdir -p $(OUT_DIR)/.release
9696
cp -a ./semantic-release-template/. $(OUT_DIR)/.release
9797
cp ./build/dist/release-template.hbs $(OUT_DIR)/.release
9898
cp ./build/dist/gitmojis.json $(OUT_DIR)/.release
9999
cp ./build/src/semver.json $(OUT_DIR)/.release
100-
ifeq ($(MODE),simple)
100+
ifeq ($(TEMPLATE_TYPE),simple)
101101
cp $(OUT_DIR)/.release/commit-template-simple.hbs $(OUT_DIR)/.release/commit-template.hbs
102102
else
103103
cp $(OUT_DIR)/.release/commit-template-default.hbs $(OUT_DIR)/.release/commit-template.hbs

README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<!-- code_chunk_output -->
1919

2020
- [Features](#features)
21+
- [Release template type](#release-template-type)
2122
- [How to use in Mac](#how-to-use-in-mac)
2223
- [Install](#install)
2324
- [Usage](#usage)
@@ -32,17 +33,26 @@
3233

3334
<!-- /code_chunk_output -->
3435

35-
3636
## Features
37-
- :smile: A simple script to add the semver field to [gitmojis.json](https://github.com/carloscuesta/gitmoji/blob/master/src/data/gitmojis.json).
37+
38+
- :smile: A simple script to add the semver field
39+
to [gitmojis.json](https://github.com/carloscuesta/gitmoji/blob/master/src/data/gitmojis.json).
3840
- Generate the files `gitmojis.json` with the semver field added.
39-
- :rocket: You can easily do Semver Release automatically by just committing with gitmoji. ( [like this](https://github.com/nkmr-jp/gitmoji-semver/releases) )
40-
- Automate versioning and release with GithubActions and [semantic-release](https://github.com/semantic-release/semantic-release).
41+
- :rocket: You can automatically and easily release by semver (semantic versioning) just by
42+
committing with Gitmoji. ( [like this](https://github.com/nkmr-jp/gitmoji-semver/releases) )
43+
- Automate versioning and release with GithubActions
44+
and [semantic-release](https://github.com/semantic-release/semantic-release).
4145

46+
### Release template type
47+
48+
| [default](https://github.com/nkmr-jp/gitmoji-semver-sample/releases/tag/v2.4.0) | [simple](https://github.com/nkmr-jp/gitmoji-semver-sample/releases/tag/v2.3.0) |
49+
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
50+
| ![img_2.png](img_2.png) | ![img_1.png](img_1.png) |
4251

4352
## How to use in Mac
4453

4554
### Install
55+
4656
Require `curl`, `jq`, `yq` and `node` command.
4757

4858
```sh
@@ -60,17 +70,19 @@ git clone https://github.com/nkmr-jp/gitmoji-semver
6070
```
6171

6272
### Usage
73+
6374
```sh
6475
cd ./gitmoji-semver
6576
make help
6677
```
6778

68-
<img src="img.png" width=800>
79+
<img src="img.png" width=600>
6980

7081
## How to use in GithubActions ( only 3 minutes )
7182

72-
The following steps will automate versioning and releasing with gitmoji using GithubActions.
73-
You only need to add two files, and you're ready to go. Feel free to try it out in your own Github Repository.
83+
The following steps will automate versioning and releasing with gitmoji using GithubActions. You
84+
only need to add two files, and you're ready to go. Feel free to try it out in your own Github
85+
Repository.
7486

7587
### Step 1: Add `.semver.yml` to your Repository root
7688

@@ -101,7 +113,7 @@ semver:
101113
- construction # Work in progress.
102114
```
103115
104-
### Step 2: Add `release.yml` to `.github/workflows/`
116+
### Step 2: Add `release.yml` to `.github/workflows/`
105117

106118
```yml
107119
# .github/workflows/release.yml
@@ -149,6 +161,7 @@ jobs:
149161
```
150162

151163
### Step 3: Commit and Push
164+
152165
```sh
153166
git add .
154167
git commit -m ":construction_worker: Add Release settings by https://github.com/nkmr-jp/gitmoji-semver"
@@ -159,7 +172,7 @@ git push
159172

160173
#### If you want to run locally
161174

162-
There will not be an actual Release. You can see how it works.
175+
There will not be an actual Release. You can see how it works.
163176

164177
```sh
165178
brew install act
@@ -179,10 +192,10 @@ act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 # ※ 16GB docker image
179192

180193
👤 **nkmr-jp**
181194

182-
183195
## Show your support
184196

185197
Give a ⭐️ if this project helped you!
186198

187199
***
188-
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
200+
_This README was generated with ❤️
201+
by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_

img.png

1.26 KB
Loading

img_1.png

174 KB
Loading

img_2.png

159 KB
Loading

0 commit comments

Comments
 (0)