|
2 | 2 |
|
3 | 3 | ## Types Packages |
4 | 4 |
|
5 | | -### Quick Publish |
| 5 | +Quick Publish |
| 6 | + |
6 | 7 | ```bash |
| 8 | +# Set the version (e.g. 17, 16, 15, etc.) |
| 9 | +VERSION=17 |
| 10 | + |
7 | 11 | # Build and prepare a specific version |
8 | | -pnpm --filter "@libpg-query/types17" run build |
9 | | -pnpm --filter "@libpg-query/types17" run prepare:types |
10 | | -cd types/17/dist && npm publish |
| 12 | +pnpm --filter "@libpg-query/types${VERSION}" version patch |
| 13 | +git add . && git commit -m "release: bump @libpg-query/types${VERSION} version" |
| 14 | +pnpm --filter "@libpg-query/types${VERSION}" run build |
| 15 | +pnpm --filter "@libpg-query/types${VERSION}" run prepare:types |
| 16 | +pnpm --filter "@libpg-query/types${VERSION}" publish --tag pg${VERSION} |
| 17 | +``` |
| 18 | + |
| 19 | +Or build all types |
| 20 | + |
| 21 | +```bash |
| 22 | +# Set the version (e.g. 17, 16, 15, etc.) |
| 23 | +VERSION=17 |
| 24 | + |
| 25 | +cd types/${VERSION} |
| 26 | +pnpm version patch |
| 27 | +git add . && git commit -m "release: bump @libpg-query/types${VERSION} version" |
| 28 | +pnpm build |
| 29 | +pnpm prepare:types |
| 30 | +pnpm publish --tag pg${VERSION} |
| 31 | +``` |
| 32 | + |
| 33 | +Promote to latest (optional) |
11 | 34 |
|
12 | | -# Or build all types |
13 | | -pnpm run build:types |
14 | | -pnpm run prepare:types |
| 35 | +```bash |
| 36 | +# Set the version (e.g. 17, 16, 15, etc.) |
| 37 | +VERSION=17 |
| 38 | + |
| 39 | +# Promote pg${VERSION} tag to latest |
| 40 | +npm dist-tag add @pgsql/types@pg${VERSION} latest |
15 | 41 | ``` |
16 | 42 |
|
17 | 43 | ### What it does |
18 | 44 | - Transforms `@libpg-query/types17` → `@pgsql/types` with tag `pg17` |
19 | 45 | - Transforms `@libpg-query/types16` → `@pgsql/types` with tag `pg16` |
20 | 46 | - etc. |
21 | 47 |
|
22 | | -### Install published packages |
23 | | -```bash |
24 | | -npm install @pgsql/types@pg17 # PostgreSQL 17 types |
25 | | -npm install @pgsql/types@pg16 # PostgreSQL 16 types |
26 | | -``` |
27 | | - |
28 | 48 | ## Version Packages |
29 | 49 |
|
30 | 50 | ### Quick Publish |
31 | 51 | ```bash |
| 52 | +# Set the version (e.g. 17, 16, 15, etc.) |
| 53 | +VERSION=17 |
| 54 | + |
32 | 55 | # Build and publish a specific version |
33 | | -cd versions/17 |
| 56 | +cd versions/${VERSION} |
34 | 57 | pnpm build |
35 | 58 | pnpm run publish:pkg |
36 | 59 |
|
37 | 60 | # Or manually with custom tag |
38 | | -cd versions/17 |
| 61 | +cd versions/${VERSION} |
39 | 62 | pnpm build |
40 | 63 | TAG=beta node ../../scripts/publish-versions.js |
41 | 64 | ``` |
|
0 commit comments