mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
31 lines
721 B
YAML
31 lines
721 B
YAML
name: Setup
|
|
description: Setup Env
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- name: Setup Java Env
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'microsoft'
|
|
java-version: '17'
|
|
cache: gradle
|
|
|
|
- name: Cache node modules
|
|
id: cache-npm
|
|
uses: actions/cache@v3
|
|
with:
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-node-modules-cache-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-modules-cache-
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|