Skip to content

Commit

Permalink
[Feat] add commitlint configuration and linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Feb 12, 2024
1 parent ef309c8 commit ce44879
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
// This line config will read the NPM package named "commitlint-config-wizardoc", so please make sure you have installed it before config this line.
extends: "wizardoc",
};
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint

on: push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: latest

- name: Install commit message convention lib
run: npm i commitlint-config-wizardoc -D

- name: Check lint name convention
uses: wagoid/commitlint-github-action@v4
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Release'
name: Release

on:
push:
Expand All @@ -15,15 +15,15 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"

- name: Replace template
run: python3 scripts/replace-template.py

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: '[Update] apply template'
message: "[Update] apply template"

- name: Read version from project config
id: read_toml
Expand All @@ -45,4 +45,3 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
generateReleaseNotes: true

8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Lua
/luarocks
/lua
/lua_modules
/.luarocks

# OS
.DS_Store
Empty file removed plugin-name/init.lua
Empty file.
2 changes: 1 addition & 1 deletion project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "plugin-name"
version = "0.0.1"
version = "0.0.2"
description = "description"
author = "Mist"
email = "[email protected]"

0 comments on commit ce44879

Please sign in to comment.