File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed
Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ # Git Hub Actions
2+ # ####################################
3+ # This GHA is responsible for creating automated
4+ # GitHub release based PR. Once the PR is merged
5+ # Google release please will update the `CHANGELOG.md`
6+ # `README.md` and `package.json` files.
7+ # Followed by tagging the commit with the appropriate version
8+ # number (as per SemVer) and create a GitHub release on the tag.
9+
10+ name : Automated release
11+ run-name : Executing release on ${{ github.repository }} 🚀
12+
13+ permissions :
14+ contents : write
15+ issues : write
16+ pull-requests : write
17+
18+ on :
19+ push :
20+ branches : [main]
21+
22+ env :
23+ environment : base
24+ timezone : ${{ vars.TIMEZONE }}
25+
26+ jobs :
27+ # 1. Setup test infrastructure
28+ setup :
29+ name : Infrastructure setup 🔧
30+ runs-on : ubuntu-latest
31+ outputs :
32+ environment : ${{ env.environment }}
33+ timezone : ${{ env.timezone }}
34+ steps :
35+ - name : Environment 🧪
36+ run : echo "Environment set to ${{ env.environment }}"
37+
38+ - name : Timezone 🌐
39+ run : echo "Timezone set to ${{ env.timezone }}"
40+
41+ # 2. Update files
42+ release :
43+ name : Release ✨
44+ needs : setup
45+ environment :
46+ name : ${{ needs.setup.outputs.environment }}
47+ runs-on : ubuntu-latest
48+
49+ steps :
50+ - name : Repository
51+ uses : actions/checkout@v6
52+
53+ - name : Create
54+ uses : googleapis/release-please-action@v4
55+ with :
56+ token : ${{ secrets.RELEASE_TOKEN }}
57+ release-type : node
Original file line number Diff line number Diff line change 1+ {
2+ "." : " 0.0.1"
3+ }
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" ,
3+ "packages" : {
4+ "." : {
5+ "release-type" : " simple"
6+ }
7+ },
8+ "pull-request-title-pattern" : " chore(${scope}): release${component} ${version}" ,
9+ "extra-label" : " Type: chore, Type: documentation"
10+ }
You can’t perform that action at this time.
0 commit comments