PeerTube/.github/actions/reusable-prepare-peertube-b.../action.yml

32 lines
688 B
YAML
Raw Normal View History

2021-12-01 14:14:58 +01:00
name: "Reusable prepare PeerTube build"
description: "Reusable prepare PeerTube build"
inputs:
node-version:
required: true
description: 'NodeJS version'
runs:
using: "composite"
steps:
- name: Use Node.js
2022-06-27 15:28:32 +02:00
uses: actions/setup-node@v3
2021-12-01 14:14:58 +01:00
with:
node-version: ${{ inputs.node-version }}
- name: Cache Node.js modules
2022-06-27 15:28:32 +02:00
uses: actions/cache@v3
2021-12-01 14:14:58 +01:00
with:
path: |
**/node_modules
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile