Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

other: #238 🔹 ci improvement #239

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: check fmt
run: pnpm fmt:check
- name: check lint
run: pnpm lint
- name: check lint text
run: pnpm lint:text
- name: check types
run: pnpm tsc --noEmit
- name: check building
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check if it's the original repo and the main branch
run: |
if [[ "${{ github.repository }}" == "Ubugeeei/chibivue" && "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "This is the original repo's main branch, running the workflow."
else
echo "This is a fork or a different branch, skipping the workflow."
exit 0
fi
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down