diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d742a39..92386cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,8 @@ jobs: with: python-version: '3.7' architecture: 'x64' - - uses: actions/cache@v2 + - name: Setup pip cache + uses: actions/cache@v2 with: path: ~/.cache/pip key: pip-3.7-${{ hashFiles('package.json') }} @@ -32,7 +33,8 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + - name: Setup yarn cache + uses: actions/cache@v2 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} diff --git a/src/utils.ts b/src/utils.ts index 6631627..58455ea 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -16,7 +16,7 @@ export function addJSONTour( try { tutorial = manager.createTutorial(id, label, hasHelpEntry); steps.forEach(({ content, placement, target, title }) => { - tutorial?.createAndAddStep(target, content, placement, title); + tutorial.createAndAddStep(target, content, placement, title); }); } catch (error) { console.error(`Fail to add tour '${label}' (${id})`, error);