From 9ef7a86e2b45626eb68a589663f163c0cce7242e Mon Sep 17 00:00:00 2001 From: renardeinside Date: Wed, 21 Feb 2024 10:26:09 +0100 Subject: [PATCH 1/3] add yarn tooling --- .github/workflows/onpush.yml | 7 +++++++ Makefile | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/onpush.yml b/.github/workflows/onpush.yml index b88ac80..3054810 100644 --- a/.github/workflows/onpush.yml +++ b/.github/workflows/onpush.yml @@ -19,6 +19,13 @@ 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: 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 From d7461c2089df4bfbcbe454e3837efdfee898ad26 Mon Sep 17 00:00:00 2001 From: renardeinside Date: Wed, 21 Feb 2024 10:29:38 +0100 Subject: [PATCH 2/3] add yarn install --- .github/workflows/onpush.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/onpush.yml b/.github/workflows/onpush.yml index 3054810..503f9d3 100644 --- a/.github/workflows/onpush.yml +++ b/.github/workflows/onpush.yml @@ -24,6 +24,8 @@ jobs: 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 From 8ec0c709ca699432729fca7fd3475ea9132eeb9f Mon Sep 17 00:00:00 2001 From: renardeinside Date: Wed, 21 Feb 2024 10:32:26 +0100 Subject: [PATCH 3/3] add yarn steps to release --- .github/workflows/onrelease.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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