name: Publish Workflow / Setup
description: It setting up the repository environment for publish

runs:
  using: composite
  steps:
    - name: Setup NodeJS
      uses: actions/setup-node@v4
      with:
        node-version: 20
        cache: 'yarn'
        always-auth: true
        registry-url: 'https://registry.npmjs.org'

    - name: Install dependencies
      run: yarn install --frozen-lockfile --ignore-scripts
      shell: bash

    - name: Set Git credentials
      run: |
        git config --local user.email "actions@github.com"
        git config --local user.name "GitHub Action"
      shell: bash
