Skip to content

Commit

Permalink
chore: introduce commitlint (#369)
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Żuraw <[email protected]>
  • Loading branch information
andrzejewsky and krzysztofzuraw authored Apr 17, 2023
1 parent fd68b53 commit cdd06a5
Show file tree
Hide file tree
Showing 6 changed files with 4,178 additions and 1,618 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ module.exports = {
},
],
},
ignorePatterns: [".eslintrc.cjs"],
ignorePatterns: [".eslintrc.cjs", "commitlint.config.cjs"],
};
23 changes: 23 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on:
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
build:
name: Check pull request title
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8.2.0
run_install: |
- recursive: false
args: [--frozen-lockfile]
- name: Validate PR title
run: echo "${{ github.event.pull_request.title }}" | pnpm dlx commitlint --verbose
9 changes: 7 additions & 2 deletions .release-it.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
module.exports = {
git: {
tag: false,
tag: true,
},
github: {
release: false,
release: true,
},
plugins: {
"@release-it/conventional-changelog": {
preset: "conventionalcommits",
},
},
};
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@release-it/conventional-changelog": "^5.1.1",
"@storybook/addon-actions": "^7.0.3",
"@storybook/addon-essentials": "^7.0.3",
"@storybook/addon-interactions": "^7.0.3",
Expand Down
Loading

2 comments on commit cdd06a5

@vercel
Copy link

@vercel vercel bot commented on cdd06a5 Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on cdd06a5 Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

macaw-ui – ./legacy

macaw-ui.vercel.app
macaw-ui-saleorcommerce.vercel.app
macaw-ui-git-canary-saleorcommerce.vercel.app

Please sign in to comment.