Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 6980cd1

Browse files
author
Akanksh Saxena
authored
Merge pull request #632 from aziiee/configure-semantic-release
chore: configure semantic release
2 parents b5324ea + 96808b5 commit 6980cd1

File tree

4 files changed

+2591
-62
lines changed

4 files changed

+2591
-62
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
name: Release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
persist-credentials: false
14+
- uses: actions/setup-node@v2
15+
16+
- name: Install dependencies
17+
run: yarn install
18+
19+
- name: Release on NPM
20+
run: yarn semantic-release
21+
env:
22+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.husky/pre-commit

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
# skip in CI
5+
[ -n "$CI" ] && exit 0
6+
7+
# lint commit message
8+
yarn commitlint --edit $1

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@
1414
"start": "ember server --proxy http://localhost:8000",
1515
"lint:hbs": "ember-template-lint .",
1616
"lint:js": "eslint .",
17-
"test": "ember test"
17+
"test": "ember test",
18+
"prepare": "husky install"
1819
},
19-
"engines": {
20-
"node": "12.* || >= 14.*"
20+
"commitlint": {
21+
"extends": [
22+
"@commitlint/config-conventional"
23+
]
2124
},
2225
"devDependencies": {
2326
"@adfinis-sygroup/eslint-config": "^1.2.0",
27+
"@adfinis-sygroup/semantic-release-config": "^3.2.0",
2428
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
2529
"@ember/jquery": "^1.1.0",
2630
"@ember/optional-features": "^1.1.0",
@@ -90,11 +94,18 @@
9094
"eslint-plugin-node": "^9.0.1",
9195
"eslint-plugin-prettier": "^3.1.2",
9296
"faker": "^4.1.0",
97+
"husky": "^7.0.2",
9398
"loader.js": "^4.7.0",
9499
"pagination-pager": "^3.2.0",
95100
"prettier": "1.19.1",
96101
"qunit-dom": "^0.8.4",
97102
"sass": "^1.24.2",
98103
"typeface-source-sans-pro": "^0.0.75"
104+
},
105+
"engines": {
106+
"node": "12.* || >= 14.*"
107+
},
108+
"release": {
109+
"extends": "@adfinis-sygroup/semantic-release-config"
99110
}
100111
}

0 commit comments

Comments
 (0)