Add support for Astro v4, drop support for Astro v3 (#1238) #752
This file contains 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: Format | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code using Git | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
# Needs access to push to main | |
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }} | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm i | |
- name: Format with Prettier | |
run: pnpm format | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: '[ci] format' | |
branch: ${{ github.head_ref }} | |
commit_user_name: fredkbot | |
commit_user_email: [email protected] |