Skip to content

Commit

Permalink
chore: auto update readme version (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung authored Sep 13, 2024
1 parent db63782 commit dd62330
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/version.sh
Original file line number Diff line number Diff line change
@@ -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
7 changes: 3 additions & 4 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit dd62330

Please sign in to comment.