astro/.github/workflows/format.yml

31 lines
675 B
YAML
Raw Normal View History

2021-03-26 19:45:53 +00:00
name: 'Format Code'
on:
push:
branches:
- main
env:
node_version: 14
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v2
2021-03-26 19:45:53 +00:00
with:
node-version: ${{ env.node_version }}
- run: yarn --frozen-lockfile --ignore-engines
env:
CI: true
- run: yarn lerna run build --scope @astrojs/parser
- run: yarn format
2021-03-26 19:45:53 +00:00
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] yarn format'
2021-03-26 19:45:53 +00:00
branch: ${{ github.head_ref }}