1234567891011121314151617181920212223242526272829303132 |
- 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@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@v3
- with:
- path: ${{ steps.yarn.outputs.cache-dir }}
- key: ${{ steps.vars.outputs.cache-key }}-${{ hashFiles('**/yarn.lock') }}
|