From 56efb26ca7baeb36b3cca3592525c263ad69345b Mon Sep 17 00:00:00 2001 From: Edmund Hung Date: Fri, 13 Sep 2024 23:17:23 +0100 Subject: [PATCH 1/2] chore: auto update readme version --- .github/version.sh | 5 +++++ README => README.md | 7 +++---- package.json | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100755 .github/version.sh rename README => README.md (96%) diff --git a/.github/version.sh b/.github/version.sh new file mode 100755 index 00000000..28b0f2b9 --- /dev/null +++ b/.github/version.sh @@ -0,0 +1,5 @@ +# Find the current version of the @conform-to/dom package +VERSION=$(node -p "require('./packages/conform-dom/package.json').version") + +# Replace the version on the README +sed -i '' "s/^Version [0-9]*\.[0-9]*\.[0-9]*/Version ${VERSION}/" README.md \ No newline at end of file diff --git a/README b/README.md similarity index 96% rename from README rename to README.md index 5672284a..3828feba 100644 --- a/README +++ b/README.md @@ -1,14 +1,13 @@ - - +``` ███████╗ ██████╗ ███╗ ██╗ ████████╗ ██████╗ ███████╗ ███╗ ███╗ ██╔═════╝ ██╔═══██╗ ████╗ ██║ ██╔═════╝ ██╔═══██╗ ██╔═══██╗ ████████║ ██║ ██║ ██║ ██╔██╗██║ ███████╗ ██║ ██║ ███████╔╝ ██╔██╔██║ ██║ ██║ ██║ ██║╚████║ ██╔════╝ ██║ ██║ ██╔═══██╗ ██║╚═╝██║ ╚███████╗ ╚██████╔╝ ██║ ╚███║ ██║ ╚██████╔╝ ██║ ██║ ██║ ██║ ╚══════╝ ╚═════╝ ╚═╝ ╚══╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ +``` - -Version 1.1.3 / License MIT / Copyright (c) 2024 Edmund Hung +Version 1.2.0 / License MIT / Copyright (c) 2024 Edmund Hung A type-safe form validation library utilizing web fundamentals to progressively enhance HTML Forms with full support for server frameworks like Remix and Next.js. diff --git a/package.json b/package.json index a141e4bd..8621665a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "pnpm run \"/^test:.*/\"", "test:api": "vitest --watch", "test:e2e": "playwright test --ui", - "version": "changeset version && pnpm install --lockfile-only", + "version": "changeset version && pnpm install --lockfile-only && .github/version.sh", "lint": "eslint --cache --ext .js,.jsx,.ts,.tsx .", "prepare": "husky install" }, From 70bb814a98d09118740508a9e099679b9bbd341e Mon Sep 17 00:00:00 2001 From: Edmund Hung Date: Fri, 13 Sep 2024 23:18:27 +0100 Subject: [PATCH 2/2] missing lr --- .github/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/version.sh b/.github/version.sh index 28b0f2b9..1546f8a8 100755 --- a/.github/version.sh +++ b/.github/version.sh @@ -2,4 +2,4 @@ VERSION=$(node -p "require('./packages/conform-dom/package.json').version") # Replace the version on the README -sed -i '' "s/^Version [0-9]*\.[0-9]*\.[0-9]*/Version ${VERSION}/" README.md \ No newline at end of file +sed -i '' "s/^Version [0-9]*\.[0-9]*\.[0-9]*/Version ${VERSION}/" README.md