From 7261e94c0c1dea3dda1c7fb787af8d014d86e5ba Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:02:36 -0500 Subject: [PATCH 1/4] fix: add back package.json (#152) --- .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 f54b7b7acee70cae083b826a93f9a352f85edaf2 Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:16:57 -0500 Subject: [PATCH 2/4] Json (#153) * fix: add back package.json * 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 648b82f6de6ac09073c948696a48c17e38074f28 Mon Sep 17 00:00:00 2001 From: Eitan Miller Date: Thu, 7 Dec 2023 18:19:21 -0500 Subject: [PATCH 3/4] Json (#154) * fix: add back package.json * ci: fix release automation * 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 594ad1960b8a2125bbef054773b89526060fbd18 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 7 Dec 2023 23:19:34 +0000 Subject: [PATCH 4/4] v${version} --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6c5fb8f..38625f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unocss-scrollbar-variant", - "version": "0.37.10", + "version": "$unoversion", "description": "scrollbar preset for UnoCSS", "keywords": [ "unocss",