-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump node v 20 and add semantic release [OTE-804] (#237)
- Loading branch information
1 parent
f0ed2f2
commit 20e524e
Showing
9 changed files
with
11,027 additions
and
4,840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "[v4-client-js] Conventional PR Title" | ||
on: | ||
pull_request: | ||
types: ['opened', 'edited', 'reopened', 'synchronize'] | ||
|
||
jobs: | ||
conventional-pr-title: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./v4-client-js | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 20.8.1 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.8.1 | ||
registry-url: https://registry.npmjs.org | ||
cache: "npm" | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm install @commitlint/config-conventional | ||
- name: Lint PR Title | ||
run: | | ||
echo "${PR_TITLE}" | npx commitlint --config commitlint.config.js | ||
env: | ||
PR_TITLE: '${{ github.event.pull_request.title }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18 | ||
v20.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"branches": ["main"], | ||
"tagFormat": "v4-client-js@${version}", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/npm", | ||
"@semantic-release/git" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'subject-case': [0, 'never'], | ||
'header-max-length': [2, 'always', 120], | ||
'body-max-line-length': [0, 'always', 120], | ||
}, | ||
}; |
Oops, something went wrong.