chore: update README.md

Signed-off-by: Ardalan Amini <[email protected]>
This commit is contained in:
Ardalan Amini committed 2023-04-30 13:29:38 +03:30
1 parent 31f0c882d7
commit 6f8acfbacb
4 files changed
+70 -70

No files matched your search

+13 -14
View File
@@ -4,24 +4,23 @@ updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
directory : /
schedule :
interval: monthly
day: monday
commit-message:
prefix: deps(CI)
reviewers:
day : monday
commit-message :
prefix: ci(deps)
reviewers :
- ardalanamini
# Maintain dependencies for NPM
- package-ecosystem: npm
directory: /
schedule:
- package-ecosystem : npm
directory : /
schedule :
interval: monthly
day: monday
day : monday
versioning-strategy: increase
commit-message:
prefix: deps
prefix-development: deps(Dev)
reviewers:
commit-message :
prefix : build(deps)
reviewers :
- ardalanamini
+10 -10
View File
@@ -1,40 +1,40 @@
name: Release
on:
on :
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
test:
test :
uses: ./.github/workflows/test.yml
release:
name: Create Release
name : Create Release
concurrency: github-release
environment:
name: release
url: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
url : https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
runs-on: ubuntu-latest
runs-on : ubuntu-latest
needs:
needs :
- test
steps:
steps :
- uses: actions/checkout@v3
- name: Changelog
uses: ardalanamini/auto-changelog@master
id: changelog
id : changelog
- name: Create Release
uses: softprops/action-gh-release@v1
env:
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: |
body : |
${{ steps.changelog.outputs.changelog }}
prerelease: ${{ steps.changelog.outputs.prerelease }}
+22 -22
View File
@@ -1,19 +1,19 @@
name: Test
on: # rebuild any PRs and main branch changes
push:
on : # rebuild any PRs and main branch changes
push :
branches:
- master
pull_request:
pull_request :
workflow_call:
jobs:
build: # make sure build/ci work properly
name: Build
build : # make sure build/ci work properly
name : Build
runs-on: ubuntu-latest
steps:
steps :
- uses: actions/checkout@v3
- name: Use PNPM
@@ -24,27 +24,27 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
cache: pnpm
cache : pnpm
node-version: 16
- name: Install dependencies
run: pnpm i
run : pnpm i
- name: Check code styles
run: pnpm lint
run : pnpm lint
- name: Build using TypeScript
run: pnpm build
run : pnpm build
- name: Package using ncc
run: pnpm package
run : pnpm package
test: # make sure the action works on a clean machine without building
name: Test
test : # make sure the action works on a clean machine without building
name : Test
runs-on: ubuntu-latest
steps:
steps :
- uses: actions/checkout@v3
- name: Changelog
@@ -53,21 +53,21 @@ jobs:
semver: ${{ startsWith(github.ref, 'refs/tags/') }}
test-with-inputs: # make sure the action works on a clean machine without building
name: Test with inputs
name : Test with inputs
runs-on: ubuntu-latest
steps:
steps :
- uses: actions/checkout@v3
- name: Changelog
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-types: |
github-token : ${{ secrets.GITHUB_TOKEN }}
commit-types : |
feat: Feature
default-commit-type: Default Type
mention-authors: false
default-commit-type : Default Type
mention-authors : false
mention-new-contributors: false
include-compare-link: false
semver: false
include-compare-link : false
semver : false
+25 -24
View File
@@ -36,7 +36,8 @@ type(category): description [flag]
> The changelogs will be in the same order as `commit-types` input.
> If the `type` doesn't match any of the provided `commit-types` input keys, The `default-commit-type` input will be used instead.
> If the `type` doesn't match any of the provided `commit-types` input keys, The `default-commit-type` input will be
used instead.
- The `category` is optional and can be anything of your choice.
@@ -73,17 +74,17 @@ Commit types.
_Default:_
```yaml
feat: New Features
fix: Bug Fixes
build: Build System & Dependencies
perf: Performance Improvements
docs: Documentation
test: Tests
feat : New Features
fix : Bug Fixes
build : Build System & Dependencies
perf : Performance Improvements
docs : Documentation
test : Tests
refactor: Refactors
chore: Chores
ci: CI
style: Code Style
revert: Reverts
chore : Chores
ci : CI
style : Code Style
revert : Reverts
```
#### `default-commit-type`
@@ -245,7 +246,7 @@ Using with default inputs:
```yaml
- name: Changelog
uses: ardalanamini/auto-changelog@v4
id: changelog
id : changelog
```
Using with custom inputs:
@@ -253,10 +254,10 @@ Using with custom inputs:
```yaml
- name: Changelog
uses: ardalanamini/auto-changelog@v4
id: changelog
id : changelog
with:
github-token: ${{ github.token }}
commit-types: |
github-token : ${{ github.token }}
commit-types : |
feat: New Features
fix: Bug Fixes
build: Build System & Dependencies
@@ -268,14 +269,14 @@ Using with custom inputs:
ci: CI
style: Code Style
revert: Reverts
default-commit-type: Other Changes
release-name: v1.0.0
release-name-prefix: ""
mention-authors: true
default-commit-type : Other Changes
release-name : v1.0.0
release-name-prefix : ""
mention-authors : true
mention-new-contributors: true
include-compare-link: true
include-pr-lints: true
include-commit-lints: true
semver: true
use-github-autolink: true
include-compare-link : true
include-pr-lints : true
include-commit-lints : true
semver : true
use-github-autolink : true
```