Skip to content

Commit

Permalink
Merge pull request #35 from diskcloud/feature/34
Browse files Browse the repository at this point in the history
chore: #34 Automatically generate updated CHANGELOG.md file
  • Loading branch information
CrazyMrYan authored Jul 4, 2024
2 parents be13ea2 + 85965ee commit 0c81604
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
branches:
- plus/2.0.0

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

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

- name: Install dependencies
run: npm install

- name: Generate changelog
run: npm run changelog

- name: Commit changelog
run: |
git config --global user.email "crazymryan@gmail.com"
git config --global user.name "CrazyMrYan"
git add CHANGELOG.md
git commit -m "chore(release): update changelog"
git push origin plus/2.0.0
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
"del": "pm2 delete upload-file-service",
"log": "pm2 logs upload-file-service",
"dev": "nodemon index.js",
"prepare": "husky install"
"prepare": "husky install",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"dependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@koa/cors": "^5.0.0",
"axios": "^1.7.2",
"bcrypt": "^5.1.1",
"conventional-changelog-cli": "^5.0.0",
"dotenv": "^16.4.5",
"file-type": "^19.0.0",
"filesize": "^10.1.2",
Expand Down
Loading

0 comments on commit 0c81604

Please sign in to comment.