-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.12 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Push
on: push
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
commitlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Commit
uses: wagoid/commitlint-github-action@v5
release:
name: Publish new release
needs: [lint, commitlint]
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
extra_plugins: |
@semantic-release/changelog@6.0.2
@semantic-release/git@10.0.1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}