Skip to content

Commit cf1b4ad

Browse files
committed
chore(ci): Setup semantic release
1 parent d8e7103 commit cf1b4ad

File tree

7 files changed

+10450
-1586
lines changed

7 files changed

+10450
-1586
lines changed

.eslintrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"extends": [
3-
"./dist/index.js"
4-
]
2+
"extends": ["./dist/index.js"]
53
}

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Semantic Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [14.x, 16.x, 18.x]
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3.3.0
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: "npm"
20+
- run: npm ci
21+
- run: npm run build
22+
23+
semantic-release:
24+
runs-on: ubuntu-latest
25+
needs:
26+
- build
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: actions/setup-node@v3.3.0
30+
with:
31+
node-version: 18
32+
cache: "npm"
33+
- run: npm ci
34+
- run: npm build
35+
- run: npm run semantic-release

.releaserc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
[
5+
"@semantic-release/git",
6+
{
7+
"assets": ["package.json"],
8+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
9+
}
10+
]
11+
]
12+
}

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# eslint-config-pythoncoderas-combo
2+
23
Combo config that I will be using in most of my projects.
34

45
First, install the package via `npm install --save-dev eslint-config-pythoncoderas-combo`.
@@ -7,8 +8,6 @@ Then, in your .eslintrc file, add the following line:
78

89
```json
910
{
10-
"extends": [
11-
"pythoncoderas-combo"
12-
]
11+
"extends": ["pythoncoderas-combo"]
1312
}
1413
```

0 commit comments

Comments
 (0)