@ponti-studios/ui 0.4.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -10
- package/package.json +2 -2
- package/src/components/forms/input.tsx +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ponti-studios/ui
|
|
2
2
|
|
|
3
|
-
The canonical Ponti Studios UI package. It is published from this repository to
|
|
3
|
+
The canonical Ponti Studios UI package. It is published from this repository to GitHub Packages.
|
|
4
4
|
|
|
5
5
|
## Design
|
|
6
6
|
|
|
@@ -13,17 +13,16 @@ The design system is documented in `docs/`:
|
|
|
13
13
|
|
|
14
14
|
## Release
|
|
15
15
|
|
|
16
|
-
Releases are owned by [release-please](https://github.com/googleapis/release-please), not by hand-edited version numbers or manually pushed tags. The
|
|
16
|
+
Releases are owned by [release-please](https://github.com/googleapis/release-please), not by hand-edited version numbers or manually pushed tags. The `.github/workflows/publish.yml` workflow runs after a successful `validate` push to `main`:
|
|
17
17
|
|
|
18
|
-
1. **`release-
|
|
19
|
-
2. **`publish
|
|
20
|
-
3. **`publish-ui-manual`** — a `workflow_dispatch` break-glass path that checks out an arbitrary ref and publishes whatever version is in `package.json` there, with none of `publish-ui`'s tag/version consistency checks. Only use this to recover from a `publish-ui` run that failed for a reason unrelated to versioning (e.g. a broken `prepack` step) after a real release PR already merged — never as a way to skip release-please.
|
|
18
|
+
1. **`release-please`** — maintains a root-package release PR, updating `package.json`, `.release-please-manifest.json`, and `CHANGELOG.md` from Conventional Commit history.
|
|
19
|
+
2. **`publish`** — when that release PR is merged, checks out the exact release tag and publishes it to GitHub Packages. `workflow_dispatch` is the break-glass recovery path for a previously created release tag.
|
|
21
20
|
|
|
22
21
|
**So the actual release flow is:**
|
|
23
22
|
|
|
24
|
-
1. Land commits
|
|
25
|
-
2. Once on `main`, find or wait for the `chore(main): release ui X.Y.Z` PR that
|
|
26
|
-
3. Review and merge it. That merge creates the `ui-v<version>` tag
|
|
23
|
+
1. Land commits using [Conventional Commits](https://www.conventionalcommits.org/) — `fix:` → patch, `feat:` → minor, and `feat!:` or a `BREAKING CHANGE:` footer → major. Use `fix:` when the intended release is a patch.
|
|
24
|
+
2. Once on `main`, find or wait for the `chore(main): release ui X.Y.Z` PR that Release Please opens or updates.
|
|
25
|
+
3. Review and merge it. That merge creates the `ui-v<version>` tag; after validation succeeds, the release workflow publishes that exact tag automatically.
|
|
27
26
|
|
|
28
27
|
`prepack` (`tokens:check && check:source && typecheck`) runs as part of `pnpm install`/publish tooling and is the last gate before anything reaches npm — see "Generated files" below for the failure mode that most commonly trips it.
|
|
29
28
|
|
|
@@ -36,13 +35,13 @@ Releases are owned by [release-please](https://github.com/googleapis/release-ple
|
|
|
36
35
|
Configure the npm registry in the consumer repository:
|
|
37
36
|
|
|
38
37
|
```ini
|
|
39
|
-
@ponti-studios:registry=https://
|
|
38
|
+
@ponti-studios:registry=https://npm.pkg.github.com
|
|
40
39
|
```
|
|
41
40
|
|
|
42
41
|
Consumers that need authentication should configure a token outside the committed project `.npmrc`:
|
|
43
42
|
|
|
44
43
|
```bash
|
|
45
|
-
pnpm config set --location=user //
|
|
44
|
+
pnpm config set --location=user //npm.pkg.github.com/:_authToken "$NODE_AUTH_TOKEN"
|
|
46
45
|
```
|
|
47
46
|
|
|
48
47
|
CI consumers should use a secret-backed npm token with read access.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ponti-studios/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared UI component library for Ponti Studios",
|
|
6
6
|
"license": "MIT",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"optional": true
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
-
"packageManager": "pnpm@10.
|
|
146
|
+
"packageManager": "pnpm@11.10.0"
|
|
147
147
|
}
|
|
@@ -8,7 +8,7 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
|
8
8
|
type={type}
|
|
9
9
|
data-slot="input"
|
|
10
10
|
className={cn(
|
|
11
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground bg-background focus-visible:ring-ring border-input h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base transition-colors file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground bg-background text-foreground focus-visible:ring-ring border-input h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base transition-colors file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
12
12
|
"aria-invalid:ring-destructive/20 aria-invalid:border-destructive",
|
|
13
13
|
className,
|
|
14
14
|
)}
|