chore(workflow): 使用原生 GitHub Release 工具 (#727)

This commit is contained in:
InfinityPacer
2026-08-28 10:48:09 +08:00
committed by GitHub
parent 2475a98f2b
commit 659dc0c74e
2 changed files with 100 additions and 20 deletions
+10
View File
@@ -71,6 +71,16 @@ describe('前端测试 workflow', () => {
expect(workflow).toContain('corepack install --global yarn@1.22.22')
expect(workflow).toContain('run: yarn --frozen-lockfile')
expect(workflow).toContain('echo "frontend_version=v$frontend_version"')
expect(workflow).toContain('gh api --include')
expect(workflow).toContain('gh release create "$TAG_NAME"')
expect(workflow).toContain('release_status" != "404"')
expect(workflow).toContain('delete_status" != "404"')
expect(workflow).toContain('git/ref/tags/${TAG_NAME}')
expect(workflow).toContain('tag_query_status" = "200"')
expect(workflow).toContain('tag_query_status" != "404"')
expect(workflow).toContain('tag_delete_status" != "204"')
expect(workflow).not.toContain('dev-drprasad/delete-tag-and-release')
expect(workflow).not.toContain('softprops/action-gh-release')
expect(workflow).not.toContain('actions/checkout@v3')
expect(workflow).not.toContain('actions/setup-node@v3')
expect(workflow).not.toContain(' - v2')