Skip to content

Commit 908d69b

Browse files
committed
add custom_release_rules for the tag action
1 parent 5f006a0 commit 908d69b

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/distribute.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
default: 'all'
1010
type: choice
1111
options:
12-
- chrome
13-
- firefox
14-
- all
12+
- chrome
13+
- firefox
14+
- all
1515
autoTag:
1616
description: 'Auto Create a new tag'
1717
required: true
@@ -36,6 +36,8 @@ jobs:
3636
with:
3737
github_token: ${{ secrets.GITHUB_TOKEN }}
3838
dry_run: ${{ github.event.inputs.autoTag == 'false' }}
39+
custom_release_rules: |
40+
"fix:patch:Bug Fixes,hotfix:patch:Bug Fixes,refactor:minor:Refactoring,implement:minor:Features,change:minor:Changes,breaking:major:Breaking Changes,major:major:Major Changes"
3941
4042
- name: Update manifest.json
4143
if: github.event.inputs.autoTag == 'true'
@@ -46,9 +48,9 @@ jobs:
4648
uses: EndBug/add-and-commit@v5
4749
with:
4850
branch: master
49-
author_name: Github bot
51+
author_name: Github bot
5052
author_email: elmehdi.sakout@gmail.com
51-
message: "Bump manifest version"
53+
message: 'Bump manifest version'
5254

5355
chrome-deploy:
5456
if: ${{ (github.event.inputs.targetStore == 'chrome') || (github.event.inputs.targetStore == 'all') }}
@@ -64,13 +66,13 @@ jobs:
6466
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
6567
- name: Install yarn dependencies
6668
run: yarn
67-
69+
6870
- name: Build and zip the extension
6971
run: yarn build-chrome
70-
72+
7173
- name: Install chrome dependencies
7274
run: yarn global add chrome-webstore-upload-cli
73-
75+
7476
- name: Upload the package to Chrome web store
7577
if: ${{ github.event.inputs.testMode == 'false' }}
7678
env:
@@ -94,13 +96,13 @@ jobs:
9496
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
9597
- name: Install yarn dependencies
9698
run: yarn
97-
99+
98100
- name: Build and zip the extension
99101
run: yarn build-firefox
100-
102+
101103
- name: Install Firefox dependencies
102104
run: yarn global add web-ext web-ext-submit@6
103-
105+
104106
- name: Upload the package to Firefox web store
105107
if: ${{ github.event.inputs.testMode == 'false' }}
106108
env:

0 commit comments

Comments
 (0)