mirror of
https://github.com/chenasraf/express-otp.git
synced 2026-05-17 17:48:11 +00:00
build: semantic release config
This commit is contained in:
2
.github/workflows/semantic_release.yml
vendored
2
.github/workflows/semantic_release.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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'],
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user