Merge branch 'release' #2
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: Check commit | |
on: | |
push: | |
branches: [main, release] | |
jobs: | |
check-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: yarn install | |
env: | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
- name: Commit yarn.lock changes | |
run: | | |
if git diff --exit-code; then | |
echo "No changes to commit." | |
else | |
git config --local user.email "actions@github.com" | |
git config --local user.name "Github Actions" | |
git commit -a -m "chore: update yarn.lock" | |
git push | |
fi | |
- name: Build | |
run: yarn turbo run build | |
- name: Test | |
run: yarn test |