Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #155

Merged
merged 5 commits into from
Dec 7, 2023
Merged

Test #155

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
- name: Extract and update version
id: trim
run: |
unoversion=$(jq .devDependencies.unocss package.json -r)
version=${unoversion#^}
echo "value=${version}" >> "$GITHUB_OUTPUT"
UNO_VERSION=$(jq .devDependencies.unocss package.json -r)
TRIM_VERSION=${UNO_VERSION#^}
echo "value=$TRIM_VERSION" >> "$GITHUB_OUTPUT"
tmp=$(mktemp)
jq --arg unoversion "${version}" '.version = "$unoversion"' package.json > "$tmp" && mv "$tmp" package.json
jq --arg a "$TRIM_VERSION" '.version = "$a"' package.json > "$tmp" && mv "$tmp" package.json
git add package.json
git tag --force 'v${version}'
git commit --message 'v${version}'
git tag --force 'v$TRIM_VERSION'
git commit --message 'v$TRIM_VERSION'
git push origin main --force
- name: Create Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unocss-scrollbar-variant",
"version": "$unoversion",
"version": "0.37.10",
"description": "scrollbar preset for UnoCSS",
"keywords": [
"unocss",
Expand Down
Loading