Skip to content

Version Packages (#326) #63

Version Packages (#326)

Version Packages (#326) #63

Workflow file for this run

name: Format files with prettier and syncpack
on:
push:
branches:
- main
jobs:
format:
name: Format and commit files
runs-on: ubuntu-latest
if: github.actor != 'frachtbot'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm 9.12.3
uses: pnpm/action-setup@v4
with:
version: 9.12.3
- name: Install dependencies (with cache)
uses: covbot/pnpm-install-with-cache@v1
- name: Format files
run: pnpm run format
- name: Commit changed files
shell: bash
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name "frachtbot"
git config --global user.email "[email protected]"
git commit -am "[skip ci] Syncpack and prettier format"
git push
fi