Skip to content

Commit 478fbaf

Browse files
committed
feat: add commitlint action
1 parent 083d214 commit 478fbaf

File tree

7 files changed

+2185
-0
lines changed

7 files changed

+2185
-0
lines changed

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:10
2+
3+
COPY package*.json /
4+
5+
RUN npm ci --production
6+
7+
COPY . .
8+
9+
ENTRYPOINT ["/entrypoint.sh"]

action.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Commitlint'
2+
description: 'Lints commit messages with commitlint'
3+
author: 'Wagner Santos'
4+
inputs:
5+
configFile:
6+
description: 'commitlint config file'
7+
default: './commitlint.config.js'
8+
runs:
9+
using: 'docker'
10+
image: 'Dockerfile'
11+
branding:
12+
icon: 'check-square'
13+
color: 'blue'

entrypoint.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
cd ${GITHUB_WORKSPACE}
6+
7+
NODE_PATH=/node_modules node /run.js

0 commit comments

Comments
 (0)