Skip to content

Commit

Permalink
ci: add publint (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli authored Sep 11, 2023
1 parent 6ef135a commit e823afe
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
pull_request:
types: [opened, synchronize, reopened]
paths:
- "packages/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -19,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
command: ["lint", "test", "type:check"]
command: ["lint", "lint:pub", "test", "type:check"]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand Down
1 change: 1 addition & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"build": "tsc && vite build",
"dev": "vite",
"lint:pub": "publint --strict",
"preview": "vite preview"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"lint": "turbo run lint",
"lint:pack": "packlint sort -R",
"lint:pub": "turbo run lint:pub",
"prepack": "turbo run prepack",
"test": "turbo run test",
"type:check": "turbo run type:check --parallel"
Expand All @@ -32,6 +33,7 @@
"eslint": "^7.32.0",
"packlint": "^0.2.4",
"prettier": "^2.5.1",
"publint": "^0.2.2",
"turbo": "latest",
"typescript": "^5.1.6"
}
Expand Down
79 changes: 79 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"outputs": ["dist/**"]
},
"lint": {},
"lint:pub": { "cache": false },
"prepack": {
"outputs": ["dist/**"]
},
Expand Down

0 comments on commit e823afe

Please sign in to comment.