-
Notifications
You must be signed in to change notification settings - Fork 49
41 lines (38 loc) · 1.57 KB
/
release.yaml
File metadata and controls
41 lines (38 loc) · 1.57 KB
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
name: release
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3.7.13
id: release
with:
release-type: node
changelog-types: |
[
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Patches", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false }
]
extra-files: |
README.md
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# if there was a release, move the git tag for the major version to the same SHA as the new GitHub Release
- name: tag major version
env:
RELEASE_MESSAGE: ${{ github.event.head_commit.message }}
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
git tag --delete v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git tag --annotate v${{ steps.release.outputs.major }} --message "$RELEASE_MESSAGE"
git push origin v${{ steps.release.outputs.major }}