File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
release :
10
10
runs-on : ubuntu-latest
11
- if : github.event_name == 'push' && github.ref == 'refs/heads/main' # make sure it only run on main
11
+ # make sure it only run on main and ensure that it does not contain [skip ci] in the commit message
12
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[skip ci]')
12
13
permissions :
13
14
contents : write # to be able to publish a GitHub release
14
15
issues : write # to be able to comment on released issues
Original file line number Diff line number Diff line change 4
4
"@semantic-release/commit-analyzer",
5
5
"@semantic-release/release-notes-generator",
6
6
"@semantic-release/github",
7
- "@semantic-release/npm"
7
+ "@semantic-release/npm",
8
+ [
9
+ "@semantic-release/git",
10
+ {
11
+ "assets": ["CHANGELOG.md", "package.json"],
12
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
13
+ }
14
+ ]
8
15
]
9
16
}
You can’t perform that action at this time.
0 commit comments