From 5f9cee3e17ced7ef89b101045241f991f1d3ee96 Mon Sep 17 00:00:00 2001 From: Teon L Brooks Date: Sun, 15 Mar 2026 19:27:27 -0400 Subject: [PATCH] minor updates --- .github/workflows/release.yml | 37 +++++++++++++++++++ src/renderer/components/PyodidePlotWidget.tsx | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ed9d03f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Build and publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} + CLIENT_ID: ${{ secrets.CLIENT_ID }} + CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + LICENSE_ID: ${{ secrets.LICENSE_ID }} + run: npm run package-ci diff --git a/src/renderer/components/PyodidePlotWidget.tsx b/src/renderer/components/PyodidePlotWidget.tsx index fe158a1..6ea4ad2 100644 --- a/src/renderer/components/PyodidePlotWidget.tsx +++ b/src/renderer/components/PyodidePlotWidget.tsx @@ -6,7 +6,7 @@ import { storePyodideImageSvg, storePyodideImagePng } from '../utils/filesystem/ interface Props { title: string; imageTitle: string; - plotMIMEBundle: { 'image/svg+xml': string } | null | undefined; + plotMIMEBundle: { [key: string]: string } | null | undefined; } function svgToPngArrayBuffer(svg: string): Promise { -- 2.51.2