Skip to content

chore: 提升版本号 #61

chore: 提升版本号

chore: 提升版本号 #61

Workflow file for this run

name: auto-build
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate changelog
env:
filename: changeLog.md
run: |
echo -e '## 更新日志\n' > ${{ env.filename }}
git log --pretty=format:'- %s by @%an' --grep '^(fix|feat|perf)(\(.+\))?:' -E $(git describe --tags --abbrev=0 ${{ github.ref_name }}^)..${{ github.ref_name }} >> ${{ env.filename }}
echo -e '\n\n**Full Changelog**: https://github.com/${{ github.repository }}/compare/'$(git describe --tags --abbrev=0 ${{ github.ref_name }}^)'...${{ github.ref_name }}' >> ${{ env.filename }}
- name: Set up Nodejs
uses: actions/setup-node@v4
with:
node-version: 20
- name: build
run: |
npm install
npm run build
rm -rf ./node_modules
zip -r ./lite_tools_v4.zip ./*
- name: Upload Release File
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: lite_tools_v4.zip
body_path: ./release.md