name: Expotools on: workflow_dispatch: {} push: branches: [master, 'sdk-*'] paths: - .github/workflows/expotools.yml - tools/** pull_request: branches: [master] paths: - .github/workflows/expotools.yml - tools/** jobs: build: runs-on: ubuntu-18.04 steps: - name: ๐Ÿ‘€ Checkout uses: actions/checkout@v2 - name: โ™ป๏ธ Restore node modules in tools uses: actions/cache@v2 id: tools-modules-cache with: path: tools/node_modules key: ${{ runner.os }}-tools-modules-${{ hashFiles('tools/yarn.lock') }} restore-keys: | ${{ runner.os }}-tools-modules- - name: ๐Ÿงถ Install modules in tools dir if: steps.tools-modules-cache.outputs.cache-hit != 'true' run: yarn install --ignore-scripts --frozen-lockfile working-directory: tools - name: ๐Ÿ›  Compile TypeScript sources run: yarn tsc working-directory: tools