Skip to content

Commit

Permalink
ci: update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cherfia committed Nov 29, 2023
1 parent a5e8271 commit 319839c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "16.x"
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install commitlint
run: yarn add conventional-changelog-conventionalcommits commitlint@latest
- name: Validate commits
if: github.event_name == 'push'
run: npx commitlint --from HEADˆ1 --to HEAD --verbose
- name: Validate pull requests
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}ˆ${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- run: yarn
- run: yarn lint
- run: yarn build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "Taha Cherfia <taha.cherfia@gmail.com>",
"license": "MIT",
"engines": {
"node": ">=16.x"
"node": ">=18.x"
},
"keywords": [
"gotenberg",
Expand Down

0 comments on commit 319839c

Please sign in to comment.