feat: add svg inline options #121
Workflow file for this run
This file contains hidden or 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: Check package-lock status | |
| on: | |
| pull_request: | |
| branches: ['**'] | |
| jobs: | |
| test: | |
| name: Check package-lock status | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| fetch-depth: 0 | |
| # Важно, чтобы токен был вручную добавлен в репозиторий | |
| # Иначе после коммита не перезапускается workflow | |
| token: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }} | |
| - name: Setup Node 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: 'npm' | |
| - name: Install latest npm (>= 11.5.1) | |
| run: | | |
| [ "$(printf '%s\n' "11.5.1" "$(npm -v)" | sort -V | head -n1)" = "11.5.1" ] || npm install -g npm@latest | |
| shell: bash | |
| - name: Install packages for project | |
| run: npm i --package-lock-only --ignore-scripts | |
| - name: Create and publish commit | |
| env: | |
| GH_TOKEN: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }} | |
| BRANCH_NAME: ${{ github.head_ref }} | |
| run: | | |
| set -e | |
| # Проверяем наличие изменений в package-lock.json | |
| [[ -z $(git diff --stat | grep package-lock.json) ]] && echo "::info::Nothing to update" && exit 0 | |
| # Настраиваем git | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "yc-ui-bot" | |
| # Добавляем изменения и создаем коммит | |
| git add package-lock.json | |
| git commit -m "chore: Update package-lock" | |
| # Пушим изменения в ветку PR | |
| git push origin HEAD:${BRANCH_NAME} |