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