-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.yml
49 lines (36 loc) · 1.16 KB
/
.releaserc.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
49
branches:
- main
plugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- '@semantic-release/npm'
- '@semantic-release/git'
- '@semantic-release/github'
analyzeCommits:
- path: "@semantic-release/commit-analyzer"
releaseRules:
- type: "feat"
release: "patch"
- type: "hotfix"
release: "patch"
- type: "patch"
release: "patch"
- type: "minor"
release: "minor"
- type: "breaking"
release: "major"
prepare:
- path: "@semantic-release/exec"
cmd: "npm --git-tag-version=false version ${nextRelease.version}"
- path: "@semantic-release/exec"
cmd: "git add package.json && git status && git commit -m 'chore: update package.json version to ${nextRelease.version}'"
- path: "@semantic-release/exec"
cmd: "vsce package --out vite-serve-${nextRelease.version}.vsix"
npmPublish: false
assets:
- "vite-serve-*.vsix"
success:
- path: "@semantic-release/exec"
cmd: "vsce publish --pat $VSCE_TOKEN --packagePath vite-serve-${nextRelease.version}.vsix"
- path: "@semantic-release/exec"
cmd: "git pull && git push && git push --tags"