Skip to content

Commit

Permalink
💻 ci: add semantic release config file
Browse files Browse the repository at this point in the history
  • Loading branch information
drackp2m committed Nov 3, 2024
1 parent a6792b1 commit 33c45e4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy Play Set Online to Github Pages

on:
push:
pull_request:
branches:
- main

Expand Down
41 changes: 41 additions & 0 deletions semantic-release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module.exports = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'revert', release: 'patch' },
{ type: 'BREAKING CHANGE', release: 'major' },
],
parserOpts: {
headerPattern: /^(.+?)\s(?<type>\w+)(?:\((?<scope>[^)]*)\))?: (?<subject>.+)$/u,
headerCorrespondence: ['emoji', 'type', 'scope', 'subject'],
},
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/github',
{
assets: [
{ path: 'dist/*.zip', label: 'Build' },
{ path: 'dist/*.tar.gz', label: 'Source code (tar.gz)' },
],
},
],
[
'@semantic-release/git',
{
assets: ['package.json', 'CHANGELOG.md'],
message: '🎒 chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
};

0 comments on commit 33c45e4

Please sign in to comment.