diff --git a/.github/workflows/editorconfig.yaml b/.github/workflows/editorconfig.yaml index c03ea0d..c5c06af 100644 --- a/.github/workflows/editorconfig.yaml +++ b/.github/workflows/editorconfig.yaml @@ -32,4 +32,4 @@ jobs: run: pnpm i - name: Lint - run: pnpm lint:editorconfig + run: pnpm editorconfig-checker diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml index 697bf7a..be2b6c5 100644 --- a/.github/workflows/eslint.yaml +++ b/.github/workflows/eslint.yaml @@ -1,11 +1,6 @@ name: ESLint on: - workflow_run: - workflows: - - CodeQL - types: - - completed pull_request: branches: - main @@ -17,8 +12,6 @@ jobs: eslint: name: ESLint - if: ${{ github.event.workflow_run.conclusion == 'success' }} - runs-on: ubuntu-latest timeout-minutes: 10 @@ -39,4 +32,4 @@ jobs: run: pnpm i - name: Lint - run: pnpm lint:ts + run: pnpm eslint src/index.ts diff --git a/.github/workflows/prettier.yaml b/.github/workflows/prettier.yaml index 950fe4f..2e25221 100644 --- a/.github/workflows/prettier.yaml +++ b/.github/workflows/prettier.yaml @@ -32,4 +32,4 @@ jobs: run: pnpm i - name: Lint - run: pnpm lint:formatting + run: pnpm prettier . --check diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6838b1f..8ba8f74 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -55,4 +55,4 @@ jobs: env: GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - run: pnpm release + run: pnpm semantic-release diff --git a/.github/workflows/remark.yaml b/.github/workflows/remark.yaml index 1739755..ab920cc 100644 --- a/.github/workflows/remark.yaml +++ b/.github/workflows/remark.yaml @@ -36,4 +36,4 @@ jobs: run: pnpm i - name: Lint - run: pnpm lint:md + run: pnpm remark . --quiet --frail diff --git a/.github/workflows/spec.yaml b/.github/workflows/spec.yaml index 24572a1..9d5e7d7 100644 --- a/.github/workflows/spec.yaml +++ b/.github/workflows/spec.yaml @@ -1,11 +1,6 @@ name: Spec on: - workflow_run: - workflows: - - ESLint - types: - - completed pull_request: branches: - main @@ -17,8 +12,6 @@ jobs: spec: name: Spec - if: ${{ github.event.workflow_run.conclusion == 'success' }} - runs-on: ubuntu-latest timeout-minutes: 10 @@ -39,4 +32,4 @@ jobs: run: pnpm i - name: Specs - run: pnpm spec + run: pnpm vitest diff --git a/lint-staged.config.js b/lint-staged.config.js index 1b793dd..3d66b65 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -1,5 +1,4 @@ export default { - '**/*.md': 'remark --quiet --frail', - '**/*': 'prettier --write', + '*': 'prettier --write', 'src/index.ts': 'eslint --fix', }; diff --git a/package.json b/package.json index 5603387..e1cf8dd 100644 --- a/package.json +++ b/package.json @@ -51,15 +51,7 @@ ], "scripts": { "init": "pnpm i && husky", - "spec": "vitest", - "spec:coverage": "vitest run --coverage", - "build": "rollup -c rollup.config.ts --configPlugin typescript", - "release": "semantic-release", - "lint:editorconfig": "editorconfig-checker", - "lint:formatting": "prettier . --check", - "lint:md": "remark . --quiet --frail", - "lint:ts": "eslint src/index.ts --fix", - "prettify": "prettier . --write" + "build": "rollup -c rollup.config.ts --configPlugin typescript" }, "peerDependencies": { "@commitlint/cli": "^19.0.0",