name: 'volta setup' description: 'configures volta, node, yarn and caches' runs: using: 'composite' steps: - name: setup-volta vars id: vars shell: bash run: python3 -uS ${{ github.action_path }}/bin/setup-volta vars - name: cache volta+node+yarn id: cache uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # v3 with: path: ${{ steps.vars.outputs.volta-dir }} key: ${{ steps.vars.outputs.cache-key }} - name: install volta+node+yarn if: steps.cache.outputs.cache-hit != 'true' shell: bash run: python3 -uS ${{ github.action_path }}/bin/setup-volta install - name: yarn cache dir id: yarn shell: bash run: python3 -uS ${{ github.action_path }}/bin/setup-volta yarn-cache-dir - name: cache yarn uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # v3 with: path: ${{ steps.yarn.outputs.cache-dir }} key: ${{ steps.vars.outputs.cache-key }}-${{ hashFiles('**/yarn.lock') }}