From 704151c03fc5969ea071bae190e492d99568fc85 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sat, 3 Feb 2024 09:55:19 -0800 Subject: [PATCH] Add a test to check for built JS files inside package --- .github/workflows/release.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f119e391..e2f8019a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -49,6 +49,11 @@ jobs: python -m build --sdist --wheel . ls -l dist + - name: test to see if built js file is in the package + run: | + tar -tvf dist/*.tar.gz | grep dist/viewer.js + unzip -l dist/*.whl | grep dist/viewer.js + - name: publish to pypi uses: pypa/gh-action-pypi-publish@release/v1 if: startsWith(github.ref, 'refs/tags/')