name: Setup JavaScript envirionment

runs:
  using: "composite"
  steps:
    - name: Setup Node environment
      uses: actions/setup-node@v3
      with:
        node-version: 20.x
        cache: yarn
        cache-dependency-path: yarn.lock
      env:
        # https://github.com/actions/setup-node/issues/317
        FORCE_COLOR: 0

    - name: yarn install
      shell: bash
      run: yarn install --frozen-lockfile
