Skip to content

Commit

Permalink
ci: using tag to release
Browse files Browse the repository at this point in the history
  • Loading branch information
EINDEX committed Aug 25, 2023
1 parent 48117bc commit 24c78d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
push:
branches:
- "main"
- "release"
pull_request_target:
branches:
- "main"
Expand Down Expand Up @@ -40,6 +39,6 @@ jobs:
uses: montudor/action-zip@v1
- name: Release
run: npx semantic-release
if: github.ref_name == 'release'
if: startsWith(github.ref_name, 'v') && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
branches: ["release"],
tagFormat: "v${version}",
plugins: [
[
"@semantic-release/commit-analyzer",
Expand Down

0 comments on commit 24c78d2

Please sign in to comment.