Skip to content

Commit

Permalink
chore: optimize branch yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw committed Aug 3, 2024
1 parent d615eb5 commit 844b293
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
with:
fetch-depth: 0

- name: Fetch all branches
run: |
git fetch --all
for branch in $(git branch -r | grep -v '\->'); do
git branch --track ${branch#origin/} $branch || true
done
git pull --all
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
Expand All @@ -38,8 +46,9 @@ jobs:
- name: Install Dependencies
run: pnpm install --ignore-scripts

- name: Check Dependency Version
run: pnpm run check-dependency-version

- name: Lint
run: pnpm run lint

- name: Check Dependency Version
run: pnpm run check-dependency-version

0 comments on commit 844b293

Please sign in to comment.