mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
536d2a979d
Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
25 lines
667 B
YAML
25 lines
667 B
YAML
name: Setup Website deps
|
|
description: Setup Node.js and install website dependencies
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- name: Cache website deps
|
|
id: yarn-cache-website
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
./website/node_modules
|
|
./website/yarn/install-state.gz
|
|
key: website-${{ runner.os }}-yarn-${{ hashFiles('./website/yarn.lock') }}
|
|
|
|
- name: Install website deps
|
|
if: steps.yarn-cache-website.outputs.cache-hit != 'true'
|
|
run: yarn --cwd website install --immutable
|
|
shell: bash
|