-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mise.toml
More file actions
81 lines (64 loc) · 2.06 KB
/
.mise.toml
File metadata and controls
81 lines (64 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tools]
dprint = "latest"
action-validator = "latest"
github-cli = "latest"
[tasks.format]
alias = "fmt"
description = "Format code using dprint"
run = "dprint fmt"
[tasks."lint:config"]
description = "Check code formatting of toml, json, yaml, ..."
run = "dprint check"
[tasks."lint:action_yaml"]
description = "Validating action.yml"
run = "action-validator action.yml"
[tasks.lint]
description = "Run all lint"
depends = ["lint:*"]
[tasks.ci]
description = "Run all CI checks locally"
depends = ["lint"]
[tasks.release]
description = "Create a new release with version tag (usage: mise run release v1.2.3)"
run = '''
VERSION="{{arg(name="version")}}"
if [ -z "$VERSION" ]; then
echo 'Error: Please provide version (e.g., mise run release v1.2.3)'
exit 1
fi
MAJOR_VERSION=$(echo $VERSION | cut -d. -f1)
echo "=== Creating GitHub Action release ==="
echo "Version: $VERSION (major: $MAJOR_VERSION)"
# Ensure we're on main branch and up to date
git checkout main
git pull origin main
# Create and push version tag
echo "Creating tag: $VERSION"
git tag -a "$VERSION" -m "Release $VERSION"
git push origin "$VERSION"
# Create GitHub release using gh CLI
echo "Creating GitHub release"
gh release create "$VERSION" \
--generate-notes
# Update major version tag (e.g., v1)
echo "Updating major version tag: $MAJOR_VERSION"
git tag -f -a "$MAJOR_VERSION" -m "Release $MAJOR_VERSION (latest: $VERSION)"
git push origin "$MAJOR_VERSION" --force
echo "=== Release completed! ==="
echo "✅ Created version tag: $VERSION"
echo "✅ Created GitHub release: $VERSION"
echo "✅ Updated major tag: $MAJOR_VERSION"
echo "📦 GitHub Marketplace will auto-update from the major version tag"
'''
[tasks.release-check]
description = "Check current release status and tags"
depends = ["check"]
run = '''
echo "=== Current Release Status ==="
echo "Latest tags:"
git tag --sort=-version:refname | head -5
echo "Current branch:"
git branch --show-current
echo "Uncommitted changes:"
git status --porcelain || echo "Working tree clean"
'''