Skip to content

Commit

Permalink
chore: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Oct 2, 2023
1 parent f12aaf1 commit 83e7d6a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 45 deletions.
3 changes: 0 additions & 3 deletions .commitlintrc.json

This file was deleted.

33 changes: 1 addition & 32 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,11 @@
Husky improves your commits and more 🐶 _woof!_

# Install

```
npm install husky -D
```

# Usage

Edit `package.json > prepare` script and run it once:

```sh
npm pkg set scripts.prepare="husky install"
npm run prepare
```

Add a hook:

```sh
npx husky add .husky/pre-commit "npm test"
git add .husky/pre-commit
```

Make a commit:

```sh
git commit -m "Keep calm and commit"
# `npm test` will run every time you commit
```

_For more use cases (project in sub-directory, custom directory, CI support, ...), see documentation._

## Documentation

https://typicode.github.io/husky

**Important** Upgrading from v4 to v8 requires migrating previous config, please see the docs.
**Important** Upgrading from v4 to v9 requires migrating previous config, please see the docs.

## Articles

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
cache: npm
- run: npm ci
- name: Build
run: npm x vitepress build docs
working-directory: ./docs
run: npx vitepress build
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm test
node-version: 20
- run: ./test.sh

publish-npm:
needs: build
Expand All @@ -31,9 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build
node-version: 20
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
lib
node_modules
husky-*.tgz
tsconfig.tsbuildinfo
*.log
docs/.vitepress/cache
docs/.vitepress/dist

0 comments on commit 83e7d6a

Please sign in to comment.