diff --git a/.github/workflows/onpush.yml b/.github/workflows/onpush.yml index b88ac80..503f9d3 100644 --- a/.github/workflows/onpush.yml +++ b/.github/workflows/onpush.yml @@ -19,6 +19,15 @@ jobs: with: python-version: '3.10' cache: 'pip' + - uses: actions/setup-node@v4 + with: + node-version: 19 + cache: 'yarn' + cache-dependency-path: src/typescript/yarn.lock + - name: Install yarn dependencies + run: yarn --cwd src/typescript install + - name: Build bundle + run: yarn --cwd src/typescript build - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/onrelease.yml b/.github/workflows/onrelease.yml index f22bfb5..09abba1 100644 --- a/.github/workflows/onrelease.yml +++ b/.github/workflows/onrelease.yml @@ -23,6 +23,15 @@ jobs: with: python-version: '3.10' cache: 'pip' + - uses: actions/setup-node@v4 + with: + node-version: 19 + cache: 'yarn' + cache-dependency-path: src/typescript/yarn.lock + - name: Install yarn dependencies + run: yarn --cwd src/typescript install + - name: Build bundle + run: yarn --cwd src/typescript build - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/Makefile b/Makefile index be7b12b..08d2894 100644 --- a/Makefile +++ b/Makefile @@ -42,4 +42,8 @@ serve-docs: build-bundle: @echo "Building bundle..." cd src/typescript && yarn build - @echo "Done." \ No newline at end of file + @echo "Done." + +watch-bundle: + @echo "Watching bundle..." + cd src/typescript && yarn watch \ No newline at end of file