-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (DSO-2078) Implement conventional commits
- Loading branch information
1 parent
9465bdb
commit e78cfbd
Showing
8 changed files
with
6,557 additions
and
0 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,38 @@ | ||
name: ✨ Lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 💻 Checkout current code ref | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: 🟢 Configure Node.js on runner | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.tool-versions' | ||
|
||
- name: 📦 Install package dependencies using lockfile | ||
run: npm ci | ||
|
||
# Check all commits pushed to this PR | ||
- name: 👁️🗨️ Validate PR commits with commitlint | ||
run: >- | ||
npx commitlint | ||
--from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} | ||
--to ${{ github.event.pull_request.head.sha }} | ||
--verbose | ||
- name: 🔎 Validate PR title with commitlint | ||
run: echo "${{ github.event.pull_request.title }}" | npx commitlint |
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,26 @@ | ||
name: 🚀 Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 💻 Checkout current pull-request revision code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: 💼 Configure Git user | ||
run: | | ||
git config user.name "gbh-devops-bot" | ||
git config user.email "[email protected]" | ||
- name: 📦 Install package dependencies using lockfile | ||
run: npm ci | ||
|
||
- name: 🚀 Run new version for production | ||
run: npx release-it --ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DEVOPS_USER_TOKEN }} |
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 @@ | ||
node_modules |
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,30 @@ | ||
{ | ||
"github": { | ||
"release": true, | ||
"releaseName": "v${version}" | ||
}, | ||
"git": { | ||
"commitMessage": "chore: release v${version}", | ||
"requireBranch": "main", | ||
"tagMatch": "v[0-9]*\\.[0-9]*\\.[0-9]*", | ||
"tagName": "v${version}", | ||
"getLatestTagFromAllRefs": true, | ||
"tagExclude": "*[-]*", | ||
"push": true, | ||
"requireCommits": true, | ||
"release": true, | ||
"pushArgs": ["--no-verify", "--follow-tags"], | ||
"commitArgs": ["--no-verify"] | ||
}, | ||
"plugins": { | ||
"@release-it/conventional-changelog": { | ||
"preset": { | ||
"name": "conventionalcommits", | ||
"preset": { | ||
"name": "conventionalcommits" | ||
} | ||
}, | ||
"infile": "CHANGELOG.md" | ||
} | ||
} | ||
} |
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 @@ | ||
task 3.35.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 @@ | ||
module.exports = { extends: ['@commitlint/config-conventional'] }; |
Oops, something went wrong.