-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (43 loc) · 1.16 KB
/
tag.yaml
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
name: 'Tag'
on:
push:
branches:
- main
paths-ignore:
- '.gitignore'
- '.go.mod'
- 'renovate.json'
- '.github/workflows/**'
env:
# AWS
AWS_DEFAULT_REGION: eu-west-2
AWS_REGION: eu-west-2
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3.4.2
id: release
with:
semantic_version: 18
branch: main
working_directory: ./
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/github
@semantic-release/changelog
@google/semantic-release-replace-plugin
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Bump version and push tag
if: steps.release.outcome == 'success'
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}