action.yml 950 B

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