chore: 更新小版本发布流程,CI 新增自动创建 Gitea Release
Node.js Build / build (push) Failing after 8s

This commit is contained in:
2026-07-16 14:29:36 +08:00
parent cde9795307
commit ed4f144e26
+10
View File
@@ -62,6 +62,16 @@ jobs:
fi fi
fi fi
- name: Create Gitea Release
if: always() && steps.publish-gitea.outcome == 'success'
run: |
VERSION=$(node -p "require('./package.json').version")
curl -s -X POST \
"http://gitea:3000/api/v1/repos/windychen/windyChenUtils/releases" \
-H "Authorization: token ${{ secrets.NPM_GITEA_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\":\"v${VERSION}\",\"name\":\"v${VERSION}\",\"body\":\"## windychen-utils v${VERSION}\n\n- 发布到 Verdaccio\n- 发布到 Gitea Packages\",\"target_commitish\":\"main\"}"
- name: Notify DingTalk - name: Notify DingTalk
if: always() if: always()
run: | run: |