action.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. name: 'volta setup'
  2. description: 'configures volta, node, yarn and caches'
  3. runs:
  4. using: 'composite'
  5. steps:
  6. - name: setup-volta vars
  7. id: vars
  8. shell: bash
  9. run: python3 -uS ${{ github.action_path }}/bin/setup-volta vars
  10. - name: cache volta+node+yarn
  11. id: cache
  12. uses: actions/cache@56046cbc4743437ac40542086317b1561d7705f8 # v3.0.8
  13. with:
  14. path: ${{ steps.vars.outputs.volta-dir }}
  15. key: ${{ steps.vars.outputs.cache-key }}
  16. - name: install volta+node+yarn
  17. if: steps.cache.outputs.cache-hit != 'true'
  18. shell: bash
  19. run: python3 -uS ${{ github.action_path }}/bin/setup-volta install
  20. - name: yarn cache dir
  21. id: yarn
  22. shell: bash
  23. run: python3 -uS ${{ github.action_path }}/bin/setup-volta yarn-cache-dir
  24. - name: cache yarn
  25. uses: actions/cache@56046cbc4743437ac40542086317b1561d7705f8 # v3.0.8
  26. with:
  27. path: ${{ steps.yarn.outputs.cache-dir }}
  28. key: ${{ steps.vars.outputs.cache-key }}-${{ hashFiles('**/yarn.lock') }}