From 13f35f4ef95d0219f17c088cfc71464770f1f4e6 Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:02:17 -0500 Subject: [PATCH 1/4] fix: add back package.json --- .github/workflows/release.yml | 9 +++--- package.json | 55 +++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c9dd51..3f50d61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,11 +21,12 @@ jobs: id: trim run: | unoversion=$(jq .devDependencies.unocss package.json -r) - echo "value=${unoversion#^}" >> "$GITHUB_OUTPUT" - jq --arg unoversion "${unoversion#^}" '.version = "$unoversion"' package.json + version=${unoversion#^} + echo "value=${version}" >> "$GITHUB_OUTPUT" + jq --arg unoversion "${version}" '.version = "$unoversion"' package.json git add package.json - git tag --force v${{ steps.trim.outputs.value }} - git commit --message 'v${{ steps.trim.outputs.value }}' + git tag --force 'v${version}' + git commit --message 'v${version}' git push origin main --force - name: Create Release id: create_release diff --git a/package.json b/package.json index e69de29..6c5fb8f 100644 --- a/package.json +++ b/package.json @@ -0,0 +1,55 @@ +{ + "name": "unocss-scrollbar-variant", + "version": "0.37.10", + "description": "scrollbar preset for UnoCSS", + "keywords": [ + "unocss", + "unocss-preset", + "unocss-preset-scrollbar", + "unocss-preset-scrollbar-variant", + "unocss-scrollbar-variant", + "scrollbar" + ], + "homepage": "https://github.com/vipero07/unocss-preset-scrollbar#readme", + "bugs": { + "url": "https://github.com/vipero07/unocss-preset-scrollbar/issues" + }, + "license": "MIT", + "author": "Eitan Stadtlander-Miller", + "repository": { + "type": "git", + "url": "git+https://github.com/vipero07/unocss-preset-scrollbar.git" + }, + "main": "dist/index.cjs", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", + "exports": { + ".": { + "require": "./dist/index.cjs", + "import": "./dist/index.mjs", + "types": "./dist/index.d.ts" + } + }, + "files": [ + "dist" + ], + "sideEffects": false, + "scripts": { + "build": "rimraf dist && tsc && unbuild", + "dev": "unbuild --stub", + "release": "bumpp --commit --push --tag && pnpm publish", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@unocss/preset-mini": "^0.58.0" + }, + "devDependencies": { + "bumpp": "^9.0.0", + "pnpm": "^8.1.0", + "rimraf": "^5.0.0", + "typescript": "^5.0.2", + "unbuild": "^2.0.0", + "unocss": "^0.58.0", + "vite": "^5.0.2" + } +} From bc32733490e58551c63ecef4b737751befed2cde Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:15:39 -0500 Subject: [PATCH 2/4] ci: fix release automation --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f50d61..3205f24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: unoversion=$(jq .devDependencies.unocss package.json -r) version=${unoversion#^} echo "value=${version}" >> "$GITHUB_OUTPUT" - jq --arg unoversion "${version}" '.version = "$unoversion"' package.json + jq --arg unoversion "${version}" '.version = "$unoversion"' package.json > "$tmp" && mv "$tmp" package.json git add package.json git tag --force 'v${version}' git commit --message 'v${version}' From 22a351ce02cb4099f0f204ff94eee23c3916428d Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:18:25 -0500 Subject: [PATCH 3/4] ci: fix release automation --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3205f24..ef270c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: unoversion=$(jq .devDependencies.unocss package.json -r) version=${unoversion#^} echo "value=${version}" >> "$GITHUB_OUTPUT" + tmp=$(mktemp) jq --arg unoversion "${version}" '.version = "$unoversion"' package.json > "$tmp" && mv "$tmp" package.json git add package.json git tag --force 'v${version}' From 2ef80d0f71264cc0e7f278f0474cd1669ddfc3ca Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:26:50 -0500 Subject: [PATCH 4/4] ci: fix release automation --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef270c3..92b8b07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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