build: semantic release config

This commit is contained in:
Chen Asraf
2022-11-30 17:21:56 +02:00
parent 676b616c88
commit c8ba502815
2 changed files with 4 additions and 2 deletions

View File

@@ -15,6 +15,8 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn build
- run: cd ./build && yarn pack --filename=../package.tgz
if: "!contains(github.event.head_commit.message, '[skip publish]')"
- run: yarn semantic-release
if: "!contains(github.event.head_commit.message, '[skip publish]')"
env:

View File

@@ -1,6 +1,6 @@
/** @type {import('semantic-release').Options} */
module.exports = {
branches: ['master', 'develop', 'feat/*', 'fix/*'],
branches: ['master', { name: 'develop', prerelease: true }, { name: 'alpha', prerelease: true }, 'feat/*', 'fix/*'],
analyzeCommits: {
path: 'semantic-release-conventional-commits',
majorTypes: ['major', 'breaking'],
@@ -61,7 +61,7 @@ module.exports = {
[
'@semantic-release/github',
{
assets: ['build/**/*'],
assets: ['package.tgz'],
},
],
],