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

44 lines
1.0 KiB
YAML
Raw Normal View History

2021-12-01 07:14:58 -06: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
2024-02-06 00:34:58 -06:00
uses: actions/setup-node@v4
2021-12-01 07:14:58 -06:00
with:
node-version: ${{ inputs.node-version }}
- name: Cache Node.js modules
2024-02-06 00:34:58 -06:00
uses: actions/cache@v4
2021-12-01 07:14:58 -06: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
2023-04-21 08:05:27 -05:00
- name: Install peertube runner dependencies
shell: bash
run: cd apps/peertube-runner && yarn install --frozen-lockfile
- name: Install peertube CLI dependencies
shell: bash
run: cd apps/peertube-cli && yarn install --frozen-lockfile
- name: Display PeerTube dependencies
shell: bash
run: ls -l node_modules/@peertube