From d19a0ba2d63f6150a24cfa9459ce1f4434215860 Mon Sep 17 00:00:00 2001 From: Vedha Viyash <49812166+vedhav@users.noreply.github.com> Date: Tue, 28 Nov 2023 19:32:25 +0530 Subject: [PATCH] Install `teal.slice` with the bslib fix for stable app deployments (#110) All the GitHub packages are installed using the latest tag. But the latest tagged version of `teal.slice` breaks the apps because it's [not compatible](https://github.com/insightsengineering/teal.slice/commit/ac790e42e603714567873831458416c53f423ef5) with the bslib's latest tagged version 0.6.0. The fix for this was made only in teal.slice v0.4.0.9023 so unless we create a tagged version of `teal.slice` with this fix we want to install this version by force. --------- Signed-off-by: Vedha Viyash <49812166+vedhav@users.noreply.github.com> --- .github/workflows/deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3011ab15..ee8aa2d0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -100,7 +100,12 @@ jobs: pkg_name_structure <- ifelse("${{ matrix.channel }}" == "stable", "%s/%s@*release", "%s/%s") for (package in lockfile$Packages) { if (package$Source == "GitHub") { - renv::record(sprintf(pkg_name_structure, package$RemoteUsername, package$Package)) + # TODO: After teal.slice is released we have to remove this change. This workaround is because update to {bslib} breaks current release of teal.slice + if (package$Package == "teal.slice" && "${{ matrix.channel }}" == "stable") { + renv::record("insightsengineering/teal.slice@103491c67e26a9a85d636bd105a806904a0111ec") + } else { + renv::record(sprintf(pkg_name_structure, package$RemoteUsername, package$Package)) + } } }