forked from pascalgn/size-label-action
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.56 KB
/
release.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
52
53
54
55
name: Chart Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: google-github-actions/release-please-action@v3
id: rpa
with:
release-type: node
pull-request-title-pattern: "chore(release): ${component} ${version}"
changelog-types: >
[
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "revert", "section": "Reverts" },
{ "type": "chore", "section": "Miscellaneous Chores" },
{ "type": "docs", "section": "Documentation" },
{ "type": "test", "section": "Tests", "hidden": "true" },
{ "type": "ci", "section": "Continuous Integration", "hidden": "true" }
]
- run: yarn install
if: ${{ steps.rpa.outputs.pr }}
- run: yarn lint
if: ${{ steps.rpa.outputs.pr }}
# - run: yarn test
# if: ${{ steps.release.outputs.release_created }}
- run: yarn prepublish
if: ${{ steps.rpa.outputs.pr }}
- name: Commit and push to pull request
if: ${{ steps.rpa.outputs.pr }}
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
add_options: --force
commit_message: |
chore(build): build dist for release
This is an automatic commit to release the binaries.
file_pattern: 'dist/*'