Skip to content

Commit

Permalink
ci(root): update build & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NexZhu committed Dec 7, 2023
1 parent 0fa9feb commit 95fdd0c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,9 @@ jobs:
# https://github.com/pnpm/pnpm/issues/6300#issuecomment-1722120409
run: CYPRESS_INSTALL_BINARY=0 ./scripts/pnpm-install-filtered.js --frozen-lockfile=true ${{ steps.affected.outputs.projs }}

- name: build & lint ("main" branch)
if: github.ref == 'refs/heads/main'
- name: build & lint
run: pnpm nx affected -t build lint

- name: build & lint (not "main" branch)
if: github.ref != 'refs/heads/main'
run: |
# `git fetch`: to workaround https://github.com/actions/checkout/issues/296#issuecomment-1348164731
# Not needed now for `fetch-depth: 0`
# git fetch origin main:refs/remotes/origin/main
# git reset --soft refs/remotes/origin/main
pnpm add -g concurrently
concurrently "pnpm nx affected -t build" "npx lefthook run pre-commit"
docker-web: *job-docker

docker-desktop: *job-docker

0 comments on commit 95fdd0c

Please sign in to comment.