Skip to content

Commit

Permalink
ci: delete release-pr workflow & move lint:fix to local with husky pr…
Browse files Browse the repository at this point in the history
…e-commit
  • Loading branch information
unnoq committed Nov 23, 2024
1 parent 7fe74ce commit 8699259
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 164 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
Expand All @@ -19,12 +17,8 @@ jobs:

- run: pnpm i

- run: pnpm run lint:fix
- run: pnpm run lint

- run: pnpm run type:check

- run: pnpm run test

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'style: apply lint fixes'
3 changes: 0 additions & 3 deletions .github/workflows/release-next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4

Expand Down
150 changes: 0 additions & 150 deletions .github/workflows/release-pr.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
!.vscode/
!.changeset/
!.github/
!.husky/

# Common generated folders
logs/
Expand Down
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pnpm run lint:fix
pnpm run type:check
pnpm run test
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"url": "https://unnoq.com"
},
"scripts": {
"prepare": "husky",
"build": "pnpm run -r build",
"build:packages": "pnpm --filter=\"./packages/*\" run -r build",
"preview": "pnpm run --parallel preview",
Expand Down Expand Up @@ -38,6 +39,7 @@
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"husky": "^9.1.7",
"jsdom": "^25.0.1",
"tsup": "^8.3.0",
"typescript": "5.7.1-rc",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 8699259

Please sign in to comment.