Skip to content

Commit

Permalink
chore: add Husky pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceat committed Mar 4, 2024
1 parent ad5d66f commit da803b6
Show file tree
Hide file tree
Showing 5 changed files with 1,093 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.parcel*
dist
dist
16 changes: 15 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@ name: CI

on:
push:
branches:
- master
tags:
- v*
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
- run: npm ci
- run: npm run lint
publish-npm:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -14,10 +27,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Loading

0 comments on commit da803b6

Please sign in to comment.