Skip to content

Commit 394cba6

Browse files
psteinroeclaude
andcommitted
chore: update GitHub Actions for renamed packages and binaries
- Updated release.yml to use pgls_cli instead of pgt_cli and pgls binary name - Changed environment variable from PGT_VERSION to PGLS_VERSION - Updated artifact names from postgrestools_* to pgls_* - Fixed package paths from @postgrestools/* to @pgls/* in workflows - Updated root package.json to use @pgls namespace - Removed obsolete @PostgresTools test files from merge 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0305b11 commit 394cba6

File tree

6 files changed

+18
-81
lines changed

6 files changed

+18
-81
lines changed

.github/workflows/publish.reusable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Generate Packages
3737
id: generate-packages
38-
run: node packages/@postgrestools/postgrestools/scripts/generate-packages.mjs
38+
run: node packages/@pgls/cli/scripts/generate-packages.mjs
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
RELEASE_TAG: ${{ inputs.release-tag }}
@@ -44,7 +44,7 @@ jobs:
4444
- name: Publish npm packages as nightly
4545
if: inputs.is-prerelease == 'true'
4646
run: |
47-
for package in packages/@postgrestools/*; do
47+
for package in packages/@pgls/*; do
4848
npm publish "$package" --tag nightly --access public --provenance
4949
done
5050
env:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Publish npm packages as latest
5454
if: inputs.is-prerelease != 'true'
5555
run: |
56-
for package in packages/@postgrestools/*; do
56+
for package in packages/@pgls/*; do
5757
version="${{ inputs.release-tag }}"
5858
npm_package_name=$(jq -r ".name" "$package/package.json")
5959

.github/workflows/pull_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,19 +196,19 @@ jobs:
196196
with:
197197
cache-base: main
198198
- name: Build main binary
199-
run: cargo build -p pgt_cli --release
199+
run: cargo build -p pgls_cli --release
200200
- name: Setup Bun
201201
uses: oven-sh/setup-bun@v2
202202
- name: Install JS dependencies
203203
run: bun install
204204
- name: Build backend-jsonrpc
205-
working-directory: packages/@postgrestools/backend-jsonrpc
205+
working-directory: packages/@pgls/backend-jsonrpc
206206
run: bun run build
207207
- name: Run backend-jsonrpc test
208-
working-directory: packages/@postgrestools/backend-jsonrpc
208+
working-directory: packages/@pgls/backend-jsonrpc
209209
run: bun run test
210210
- name: Run cli test
211-
working-directory: packages/@postgrestools/postgrestools
211+
working-directory: packages/@pgls/cli
212212
run: bun run test
213213

214214
codegen:

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,33 +84,33 @@ jobs:
8484
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
8585

8686
- name: 🛠️ Run Build
87-
run: cargo build -p pgt_cli --release --target ${{ matrix.config.target }}
87+
run: cargo build -p pgls_cli --release --target ${{ matrix.config.target }}
8888
env:
8989
# Strip all debug symbols from the resulting binaries
9090
RUSTFLAGS: "-C strip=symbols -C codegen-units=1"
9191
# Inline the version in the CLI binary
92-
PGT_VERSION: ${{ needs.extract_version.outputs.version }}
92+
PGLS_VERSION: ${{ needs.extract_version.outputs.version }}
9393

9494
# windows is a special snowflake too, it saves binaries as .exe
9595
- name: 👦 Name the Binary
9696
if: matrix.config.os == 'windows-2022'
9797
run: |
9898
mkdir dist
99-
cp target/${{ matrix.config.target }}/release/postgrestools.exe ./dist/postgrestools_${{ matrix.config.target }}
99+
cp target/${{ matrix.config.target }}/release/pgls.exe ./dist/pgls_${{ matrix.config.target }}
100100
- name: 👦 Name the Binary
101101
if: matrix.config.os != 'windows-2022'
102102
run: |
103103
mkdir dist
104-
cp target/${{ matrix.config.target }}/release/postgrestools ./dist/postgrestools_${{ matrix.config.target }}
104+
cp target/${{ matrix.config.target }}/release/pgls ./dist/pgls_${{ matrix.config.target }}
105105
106106
# It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
107107
# A common workaround is to upload and download the resulting artifacts.
108108
- name: 👆 Upload Artifacts
109109
id: upload-artifacts
110110
uses: actions/upload-artifact@v4
111111
with:
112-
name: postgrestools_${{ matrix.config.target }}
113-
path: ./dist/postgrestools_*
112+
name: pgls_${{ matrix.config.target }}
113+
path: ./dist/pgls_*
114114
# The default compression level is 6; this took the binary down from 350 to 330MB.
115115
# It is recommended to use a lower level for binaries, since the compressed result is not much smaller,
116116
# and the higher levels of compression take much longer.
@@ -147,7 +147,7 @@ jobs:
147147
id: download
148148
with:
149149
merge-multiple: true
150-
pattern: postgrestools_*
150+
pattern: pgls_*
151151

152152
- name: 📂 Create Release
153153
uses: softprops/action-gh-release@v2
@@ -159,7 +159,7 @@ jobs:
159159
body: ${{ steps.create_changelog.outputs.content }}
160160
tag_name: ${{ steps.create_changelog.outputs.version }}
161161
files: |
162-
postgrestools_*
162+
pgls_*
163163
docs/schema.json
164164
fail_on_unmatched_files: true
165165
draft: true

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@postgrestools/monorepo",
2+
"name": "@pgls/monorepo",
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
@@ -10,8 +10,8 @@
1010
"typescript": "^5"
1111
},
1212
"workspaces": [
13-
"packages/@postgrestools/postgrestools",
14-
"packages/@postgrestools/backend-jsonrpc"
13+
"packages/@pgls/cli",
14+
"packages/@pgls/backend-jsonrpc"
1515
],
1616
"keywords": [],
1717
"author": "Supabase Community",

packages/@postgrestools/postgrestools/test/bin.test.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

packages/@postgrestools/postgrestools/test/test.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)