Skip to content

Commit

Permalink
build: use nx
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Oct 11, 2023
1 parent cf55787 commit 460c9d8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 25 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["20.x"]
steps:
- uses: actions/checkout@v4
- uses: nrwl/nx-set-shas@v4
- run: npm ci

- run: npx nx format:check
- run: npm run lint
- run: npx nx affected -t test --parallel=3
# - run: npx nx affected -t build --parallel=3
24 changes: 0 additions & 24 deletions .github/workflows/node.js.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js 16.x
uses: actions/setup-node@v3
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test": "npm run test -ws",
"prepare": "husky install",
"format": "prettier --write \"**/*.{js,css,md}\"",
"format:check": "prettier --check \"**/*.{js,css,md}\"",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"version": "changeset version",
Expand Down

0 comments on commit 460c9d8

Please sign in to comment.