Skip to content

Commit 8f398d6

Browse files
committed
ci: release update android version
1 parent 25330f7 commit 8f398d6

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

.github/release-drafter.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
name-template: 'v$RESOLVED_VERSION 🌈'
2-
tag-template: '$RESOLVED_VERSION'
1+
name-template: "v$RESOLVED_VERSION 🌈"
2+
tag-template: "$RESOLVED_VERSION"
3+
include-pre-releases: true
34
categories:
4-
- title: '🚀 Features'
5+
- title: "🚀 Features"
56
labels:
6-
- 'feature'
7-
- 'enhancement'
8-
- title: '🐛 Bug Fixes'
7+
- "feature"
8+
- "enhancement"
9+
- title: "🐛 Bug Fixes"
910
labels:
10-
- 'fix'
11-
- 'bugfix'
12-
- 'bug'
13-
- title: '🧰 Maintenance'
14-
label: 'chore'
15-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
11+
- "fix"
12+
- "bugfix"
13+
- "bug"
14+
- title: "🧰 Maintenance"
15+
label: "chore"
16+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
1617
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
1718
version-resolver:
1819
major:
1920
labels:
20-
- 'major'
21+
- "major"
2122
minor:
2223
labels:
23-
- 'minor'
24+
- "minor"
2425
patch:
2526
labels:
26-
- 'patch'
27-
- 'dependencies'
27+
- "patch"
28+
- "dependencies"
2829
default: patch
2930
template: |
3031
## Changes

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
git config user.name github-actions
2626
git config user.email github-actions@github.com
2727
28+
- uses: actions/setup-node@v4
29+
with:
30+
cache: "npm"
31+
node-version-file: ".node_version"
32+
2833
- name: Draft Release
2934
id: release
3035
# Drafts your next Release notes as Pull Requests are merged into "main"
@@ -38,6 +43,13 @@ jobs:
3843
echo "Next Version: ${{ steps.release.outputs.tag_name }}"
3944
npm version --git-tag-version=false --allow-same-version=true ${{ steps.release.outputs.tag_name }}
4045
46+
- name: Update Android Version
47+
uses: chkfung/android-version-actions@v1.2.2
48+
with:
49+
gradlePath: ./android/app/build.gradle
50+
versionCode: ${{github.run_number}}
51+
versionName: ${{ steps.release.outputs.tag_name }}
52+
4153
- name: Update IOS Info.plist versions
4254
id: ios-version
4355
uses: damienaicheh/update-ios-version-info-plist-action@v1.2.0

0 commit comments

Comments
 (0)