mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +01:00
20 lines
524 B
YAML
20 lines
524 B
YAML
name: 'Setup Javascript'
|
|
description: 'Setup a Javascript environment ready to run the Mastodon code'
|
|
inputs:
|
|
onlyProduction:
|
|
description: Only install production dependencies
|
|
default: 'false'
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
cache: yarn
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: Install all yarn packages
|
|
shell: bash
|
|
run: yarn --frozen-lockfile ${{ inputs.onlyProduction != 'false' && '--production' || '' }}
|