Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f60f2ea
feat: add a typespec emitter for both parquet and typescript
blacha Jul 16, 2026
05d3625
refactor: only export the standard json types
blacha Jul 20, 2026
0c2062e
refactor: more types
blacha Jul 20, 2026
fc1c219
build: only export the next types
blacha Jul 22, 2026
0314ce0
build: missing file
blacha Jul 22, 2026
0e1b060
refactor: missing files
blacha Sep 14, 2026
7eb58fb
refactor: cleanup
blacha Sep 14, 2026
00b5ce6
fix(schema): update package.json entry points to index.ts
blacha Sep 14, 2026
cd7aa62
feat(schema): track generated next types
blacha Sep 14, 2026
883df28
chore(schema): scope typespec-emitter to tspconfig.next.yaml
blacha Sep 14, 2026
402552a
feat(typespec-emitter): add test script and hyparquet devDependency
blacha Sep 14, 2026
04a710c
refactor(typespec-emitter): type Program, escape property names, and …
blacha Sep 14, 2026
8578ff9
test(typespec-emitter): align validateHyparquetSchema with ParquetFie…
blacha Sep 14, 2026
3e976da
docs(typespec-emitter): add README documentation
blacha Sep 14, 2026
58f1d8d
feat(schema): setup @typespec/versioning and add namespace Topography
blacha Sep 15, 2026
1639b2f
Merge branch 'feat/schema-typescript-parquet' into feat/typespec-version
blacha Sep 15, 2026
c48b983
feat(schema): emit versioned JSON schemas into release=v{version} dir…
blacha Sep 15, 2026
005615d
feat(schema): export versioned Parquet schemas and subfolder TypeScri…
blacha Sep 15, 2026
cc1701b
refactor: remove schemas from github
blacha Sep 16, 2026
b131213
wip: publish to s3
blacha Sep 16, 2026
e0e1cb4
refactor: missing files
blacha Sep 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}

steps:
- uses: actions/checkout@v6
Expand All @@ -25,7 +30,7 @@ jobs:
background: true

# Remove existing schema files to ensure no dangling json schemas.
- run: rm -fv schema/*.json schema/next/*.json
- run: rm -rfv schema/

- run: npm ci

Expand All @@ -44,6 +49,42 @@ jobs:
- wait: [check, test, python-ci]
- run: git diff --exit-code

- name: Configure AWS Credentials
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && env.AWS_ROLE_ARN != ''
uses: aws-actions/configure-aws-credentials@v6.2.1
with:
aws-region: ap-southeast-2
mask-aws-account-id: true
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}

- name: Push Schemas to STAC
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && env.AWS_ROLE_ARN != ''
run: |
RELEASES=($(ls -d schema/release=v* | sort -V))
LATEST="${RELEASES[-1]}"

for RELEASE_DIR in "${RELEASES[@]}"; do
VERSION="${RELEASE_DIR#schema/release=}"
if [ "$RELEASE_DIR" = "$LATEST" ]; then
echo "Pushing latest release $VERSION with virtual latest/..."
node --experimental-strip-types packages/map/src/index.ts stac-push \
--source="$RELEASE_DIR/collection.json" \
--target="${{ env.SCHEMA_S3_TARGET || 's3://linz-topographic/' }}" \
--category=schema \
--strategy="release=$VERSION" \
--strategy=latest \
--commit
else
echo "Pushing release $VERSION..."
node --experimental-strip-types packages/map/src/index.ts stac-push \
--source="$RELEASE_DIR/collection.json" \
--target="${{ env.SCHEMA_S3_TARGET || 's3://linz-topographic/' }}" \
--category=schema \
--strategy="release=$VERSION" \
--commit
fi
done

build-container:
uses: ./.github/workflows/containers.yml
with:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ target/
.cache/
.uv/
.uv-python/
.vscode/
.vscode/
schema/
packages/schema/src/types/
Loading