Skip to content

Commit

Permalink
fix: upgrade node to v20 (#5)
Browse files Browse the repository at this point in the history
* fix: upgrade node to v20

* chore: update code owners
  • Loading branch information
saikumarrs authored Mar 11, 2024
1 parent 29308e1 commit 7d132ce
Show file tree
Hide file tree
Showing 6 changed files with 591 additions and 1,898 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.1
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @bardisg
* @saikumarrs
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: 'Pull Request conventional commit title rules'
description: 'Github action to enforce Pull Request title conventional commit syntax'
description: 'GitHub action to enforce Pull Request title conventional commit syntax'
runs:
using: "composite"
steps:
- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: '.nvmrc'
cache: 'npm'

- run: |
cd ${{ github.action_path }}
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ async function run() {
const report = await lint(title, config.rules);

if (!report.valid) {
console.log('Errors')
console.log('Errors');
console.log(report.errors);
console.log('Warnings')

console.log('Warnings');
console.log(report.warnings);

process.exit(1);
}
}
Expand Down
Loading

0 comments on commit 7d132ce

Please sign in to comment.