Skip to content

v0.3.6 — mDNS online at construction #13

v0.3.6 — mDNS online at construction

v0.3.6 — mDNS online at construction #13

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
permissions:
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node (for viewer frontend)
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Build viewer frontend
working-directory: src/syncfield/viewer/frontend
run: |
# Remove the macOS-generated lockfile before install — npm has
# a long-running bug (https://github.com/npm/cli/issues/4828)
# where optional platform-specific deps (e.g. rollup's
# @rollup/rollup-linux-x64-gnu) aren't re-resolved when a
# lockfile generated on one platform is consumed on another.
# Regenerating from package.json on the CI platform works.
rm -f package-lock.json
npm install --no-audit --no-fund
npm run build
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: python -m pip install --upgrade pip build
- name: Build wheel
run: python -m build --wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1