Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 34 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish TypeScript Package

on:
release:
types:
- published

jobs:
publish-npm:
if: startsWith(github.event.release.tag_name, 'v')
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
defaults:
run:
working-directory: typescript
steps:
- name: Check out repository
uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"

- name: Verify package contents
run: npm pack --dry-run

- name: Publish to npm
run: npm publish --provenance --access public
39 changes: 39 additions & 0 deletions .github/workflows/publish-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Python Package

on:
release:
types:
- published

jobs:
publish-pypi:
if: startsWith(github.event.release.tag_name, 'v')
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Check out repository
uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}

- name: Set up uv
uses: astral-sh/setup-uv@v7

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"

- name: Sync Python dependencies
run: uv sync --group dev --no-editable

- name: Run Python validation
run: ./scripts/validate_python.sh

- name: Build Python distributions
run: uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ node_modules/
.next/
.turbo/
coverage/
*.tgz
*.tsbuildinfo
playwright-report/
test-results/
Expand Down