Add missing @stylexjs/babel-plugin
in web-example
#336
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Yarn validation | |
env: | |
YARN_ENABLE_HARDENED_MODE: 1 | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/yarn-validation.yml' | |
- '**/package.json' | |
- '**/yarn.lock' | |
merge_group: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/yarn-validation.yml' | |
- '**/package.json' | |
- '**/yarn.lock' | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
check: | |
if: github.repository == 'software-mansion/react-native-reanimated' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
- name: Install monorepo dependencies | |
run: yarn install | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
with: | |
files: | | |
**/package.json | |
**/yarn.lock | |
- name: Get list of changed directories | |
id: changed-dirs | |
run: | | |
ECHOLIST=() | |
for CHANGE in ${{ steps.changed-files.outputs.all_changed_files }} | |
do | |
DIR=$(dirname "$CHANGE") | |
ECHOLIST+=("$DIR") | |
done | |
ECHOLIST=($(echo "${ECHOLIST[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' ')) | |
echo "dirList=${ECHOLIST[*]}" >> $GITHUB_OUTPUT | |
- name: Perform yarn install in changed directories | |
working-directory: ${{ github.workspace }} | |
run: | | |
for DIR in ${{ steps.changed-dirs.outputs.dirList }} | |
do | |
echo "Yarn install in $DIR" | |
echo $(pwd) | |
cd "$DIR" && yarn install --immutable && cd ${{ github.workspace }} | |
done |