Skip to content

Commit

Permalink
Merge pull request #33 from WGrape/test
Browse files Browse the repository at this point in the history
feaat: 新增语言支持和自动release发布
  • Loading branch information
WGrape authored Sep 16, 2022
2 parents 5c745b1 + 780d111 commit ff05559
Show file tree
Hide file tree
Showing 8 changed files with 4,287 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
branches:
- master

name: Release

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ secrets.RELEASE_TOKEN }}
release-type: node
package-name: posture
changelog-types: '[{"type": "types", "section":"Types", "hidden": false},{"type": "revert", "section":"Reverts", "hidden": false},{"type": "feat", "section": "Features", "hidden": false},{"type": "fix", "section": "Bug Fixes", "hidden": false},{"type": "improvement", "section": "Feature Improvements", "hidden": false},{"type": "docs", "section":"Docs", "hidden": false},{"type": "style", "section":"Styling", "hidden": false},{"type": "refactor", "section":"Code Refactoring", "hidden": false},{"type": "perf", "section":"Performance Improvements", "hidden": false},{"type": "test", "section":"Tests", "hidden": false},{"type": "build", "section":"Build System", "hidden": false},{"type": "ci", "section":"CI", "hidden":false}]'
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
</div>

<p align="center">
<img src="https://img.shields.io/badge/Language-Shell-blue.svg">
<img src="https://img.shields.io/badge/Release-1.1.0-blue.svg">
<img src="https://img.shields.io/badge/language-Shell-blue.svg">
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/wgrape/posture">
<img src="https://img.shields.io/github/repo-size/wgrape/posture">
<img src="https://img.shields.io/github/downloads/wgrape/posture/total">
<img src="https://img.shields.io/badge/Document-中文-orange.svg">
<img src="https://img.shields.io/badge/License-MIT-green.svg">
<img src="https://img.shields.io/badge/document-中文-orange.svg">
<img src="https://img.shields.io/badge/license-MIT-green.svg">
</p>

<details>
Expand Down Expand Up @@ -61,7 +61,7 @@ export PATH=$PATH:${POSTUREPATH}
# <span id="3">三、如何使用</span>

## <span id="31">1、调整代码格式</span>
在团队开发前,需要先统一调整代码规范。工具支持```go/php/java```三种语言的代码规范设置,在```config/config.sh```文件中配置```lang```项目语言,然后切至您的项目目录下,再使用如下命令即可。
在团队开发前,需要先统一调整代码规范。工具支持```go/java/js/php/shell```五种语言的代码规范设置,在```config/config.sh```文件中配置```lang```项目语言,然后切至您的项目目录下,再使用如下命令即可。

```bash
posture adjust
Expand Down
598 changes: 598 additions & 0 deletions editor/java/intellij-java-google-style.xml

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions editor/js/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
Loading

0 comments on commit ff05559

Please sign in to comment.