-
Notifications
You must be signed in to change notification settings - Fork 204
48 lines (48 loc) · 1.85 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release
on:
push:
branches:
- master
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- run: 'echo ''{
"name": "ccapi_cpp",
"version": "1.0.0",
"devDependencies": {
"semantic-release": "^17.1.1",
"conventional-changelog-conventionalcommits":"^4.4.0"
},
"release": {
"branches": ["master"],
"plugins": [["@semantic-release/commit-analyzer", {
"preset": "conventionalcommits",
"releaseRules": [
{"type": "fix", "release": "patch"},
{"type": "feat", "release": "minor"},
{"type": "build", "release": "patch"},
{"type": "chore", "release": "patch"},
{"type": "ci", "release": "patch"},
{"type": "docs", "release": "patch"},
{"type": "style", "release": "patch"},
{"type": "refactor", "release": "patch"},
{"type": "perf", "release": "patch"},
{"type": "test", "release": "patch"},
{"type": "minor", "release": "minor"},
{"type": "major", "release": "major"},
{"type": "misc", "release": "patch"}
]
}], ["@semantic-release/release-notes-generator", {
"preset": "conventionalcommits"
}], "@semantic-release/github"]
}
}'' > "package.json"'
- run: npm install
- run: npm ci
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release