Skip to content

Commit

Permalink
chore: add releaseRules to semantic-release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
phondani0 committed Aug 11, 2024
1 parent 7853a75 commit 6333a97
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
GIT_COMMITTER_NAME: phondani0
GIT_COMMITTER_EMAIL: [email protected]
VSCE_TOKEN: ${{ secrets.VSCODE_PUBLISHER_TOKEN }}
run: npx semantic-release --debug
run: npx semantic-release
15 changes: 15 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ plugins:
- '@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: "vsce package --out vite-serve-${nextRelease.version}.vsix"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vite-serve",
"displayName": "Vite Serve",
"description": "An extension designed to streamline your React development workflow by starting your existing projects with Vite with no extra configuration.",
"version": "1.1.0",
"version": "1.0.0",
"publisher": "phondani0",
"engines": {
"vscode": "^1.8.0"
Expand Down

0 comments on commit 6333a97

Please sign in to comment.