astro/.github/workflows/format.yml
Matthew Phillips 5cc90f9dc1
Move parser to the scoped package name (#319)
* Move parser to the scoped package name

* Prettier plugin should use 0.12 of the parser
2021-06-07 16:05:13 -04:00

31 lines
707 B
YAML

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
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
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] yarn format'
branch: ${{ github.head_ref }}
push_options: --force