Skip to content

Commit

Permalink
Auto-ChangeLog
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-LYNN committed Dec 12, 2024
1 parent 2f52a46 commit a3c810e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate Changelog

on:
push:
branches:
- V1.0.0
- Beta
- backup-branch
pull_request:
branches:
- V1.0.0
- Beta
- backup-branch
release:
types: [published]

jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: npm install

- name: Generate Changelog
run: npm run release

- name: Commit changelog
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
git add CHANGELOG.md
git commit -m "chore: update changelog"
git push
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Akira's Test Bot",
"main": "index.js",
"scripts": {
"release": "standard-version",
"build": "tsc",
"start": "NODE_ENV=production npm run build && node -r tsconfig-paths/register dist/index.js",
"dev": "NODE_ENV=development ts-node -r tsconfig-paths/register src/index.ts"
Expand Down Expand Up @@ -32,6 +33,7 @@
"typescript": "^5.5.4"
},
"devDependencies": {
"@types/uuid": "^10.0.0"
"@types/uuid": "^10.0.0",
"standard-version": "^9.5.0"
}
}

0 comments on commit a3c810e

Please sign in to comment.