chore(deps): update pnpm to v9.14.1 #31
Workflow file for this run
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: Additional fixs | |
permissions: | |
contents: write | |
packages: write | |
env: | |
LEFTHOOK: 0 | |
CI: true | |
on: pull_request | |
jobs: | |
biome-migration: | |
name: ✍️ Migrate Biome | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.title, 'biome') || contains(github.event.pull_request.body, 'biome') | |
steps: | |
- name: 🦖 Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
- name: 🔻 Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 🏃 Run Node and NPM setup | |
uses: ./.github/actions/setup-project | |
- name: ✍️ Run Biome migration | |
id: migration | |
run: | | |
pnpm biome migrate --write --config-path=config/biome-config/base.json | |
pnpm biome migrate --write --config-path=config/biome-config/nestjs.json | |
pnpm biome migrate --write --config-path=config/biome-config/solidjs.json | |
# Check for changes | |
if git diff --name-only --exit-code; then | |
echo "has_changes=false" >> $GITHUB_OUTPUT | |
else | |
echo "has_changes=true" >> $GITHUB_OUTPUT | |
fi | |
- name: 💭 Get current branch name | |
id: get_branch | |
if: ${{ steps.migration.outputs.has_changes == 'true' }} | |
run: echo "BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
- name: 📥 Checkout current branch | |
if: ${{ steps.migration.outputs.has_changes == 'true' }} | |
run: git checkout ${{ steps.get_branch.outputs.BRANCH_NAME }} | |
- name: 📤 Commit changes | |
if: ${{ steps.migration.outputs.has_changes == 'true' }} | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "feat(biome): migrate configs" || echo "No changes to commit" | |
git push |