Skip to content

Commit

Permalink
Merge pull request #68 from yavorski/main
Browse files Browse the repository at this point in the history
  • Loading branch information
yousifalraheem authored Feb 15, 2024
2 parents 09d780c + 536c5aa commit ef4f60e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: "lts/*"
check-latest: false
- run: npm ci
- run: npm run build:docs
- uses: crazy-max/ghaction-github-pages@v1
- uses: crazy-max/ghaction-github-pages@v4
with:
build_dir: dist
target_branch: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: "lts/*"
check-latest: false
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
Expand All @@ -27,6 +28,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: codecov/codecov-action@v1.0.13
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
6 changes: 3 additions & 3 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [14.x, 16.x, 20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
Expand Down
6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

eslint --fix . &&
npx eslint --fix . &&
npm run lint &&
echo "✅ eslint finished successfully" &&
prettier --write --ignore-unknown . &&
prettier --check . &&
npx prettier --write --ignore-unknown . &&
npx prettier --check . &&
echo "✅ Prettier finished successfully"

0 comments on commit ef4f60e

Please sign in to comment.