Skip to content

Commit b54b524

Browse files
committed
release: bump @pgsql/types16 version
1 parent cb6bf22 commit b54b524

File tree

2 files changed

+39
-16
lines changed

2 files changed

+39
-16
lines changed

PUBLISH.md

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,63 @@
22

33
## Types Packages
44

5-
### Quick Publish
5+
Quick Publish
6+
67
```bash
8+
# Set the version (e.g. 17, 16, 15, etc.)
9+
VERSION=17
10+
711
# 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)
1134

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
1541
```
1642

1743
### What it does
1844
- Transforms `@libpg-query/types17``@pgsql/types` with tag `pg17`
1945
- Transforms `@libpg-query/types16``@pgsql/types` with tag `pg16`
2046
- etc.
2147

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-
2848
## Version Packages
2949

3050
### Quick Publish
3151
```bash
52+
# Set the version (e.g. 17, 16, 15, etc.)
53+
VERSION=17
54+
3255
# Build and publish a specific version
33-
cd versions/17
56+
cd versions/${VERSION}
3457
pnpm build
3558
pnpm run publish:pkg
3659

3760
# Or manually with custom tag
38-
cd versions/17
61+
cd versions/${VERSION}
3962
pnpm build
4063
TAG=beta node ../../scripts/publish-versions.js
4164
```

types/16/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@libpg-query/types16",
3-
"version": "16.0.0",
3+
"version": "16.0.1",
44
"author": "Dan Lynch <[email protected]>",
55
"description": "PostgreSQL AST types from the real Postgres parser",
66
"main": "index.js",

0 commit comments

Comments
 (0)