From 914bec38868a68bbb8e94a58363e83dfa495410d Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Tue, 16 Aug 2022 13:27:29 +0200 Subject: [PATCH] use storybook@future on nightly script --- .github/workflows/nightly.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1956f2f3..d347e0cb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -4,6 +4,11 @@ name: Nightly checks on: schedule: - cron: "0 0 * * *" + workflow_dispatch: + # To test fixes on push rather than wait for the scheduling + push: + branches: + - fix/nightly jobs: test_storybook_prerelease: @@ -24,9 +29,9 @@ jobs: echo "prev_sb_version=$(yarn list @storybook/react --depth=0 2> /dev/null | grep @storybook/react | awk -F'@' '{print $3}')" >> $GITHUB_ENV echo "prev_sb_csf_version=$(yarn list @storybook/csf --depth=0 2> /dev/null | grep @storybook/csf | awk -F'@' '{print $3}')" >> $GITHUB_ENV - - name: Upgrade to storybook@next + - name: Upgrade to storybook@future run: | - npx storybook upgrade --prerelease + npx storybook@future upgrade --prerelease --yes # TODO: This should not be necessary once @storybook/csf is properly updated - name: Fix local @storybook/csf version