添加版本脚本

This commit is contained in:
lutinglt
2025-06-24 20:48:27 +08:00
parent 711e01b66c
commit f65338b227
3 changed files with 11 additions and 5 deletions

View File

@@ -11,13 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Create release
run: |
export TZ=Asia/Shanghai
TAG="v$(deno run -q version).$(date +%y%m%d%H%M)"
TAG="v$(npm run -s version).$(date +%y%m%d%H%M)"
gh release create "$TAG" dist/* --notes-file .github/release.md --draft -t $TAG
env:
GH_TOKEN: ${{ github.token }}