Repository navigation
52 lines (47 loc) · 1.6 KB
/
Copy pathrelease-please.yaml
File metadata and controls
52 lines (47 loc) · 1.6 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
42
43
44
45
46
47
48
49
50
51
52
---
# Release Please Workflow
#
# Why this exists:
# Manually creating releases and writing changelogs is tedious and error-prone.
# This workflow automates it based on your conventional commit messages.
#
# What it does:
# - Watches master branch for new commits
# - Creates a "release PR" that updates version numbers and changelog
# - When you merge that PR, it automatically creates a GitHub release
# - Uses your PR titles (feat:, fix:, etc.) to generate the changelog
#
# How it works:
# 1. Merge PRs to master as normal
# 2. Release Please opens a PR with version bump and changelog
# 3. Review and merge the release PR
# 4. GitHub release is created automatically
#
# DO NOT EDIT: Managed by Terraform at https://github.com/usetero/infrastructure
name: Release please
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
with:
app-id: ${{ secrets.TERO_BOT_CLIENT_ID }}
private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }}
owner: ${{ github.repository_owner }}
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
with:
token: ${{ steps.generate-token.outputs.token }}
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json