-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.26 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
name: Release
on:
workflow_call:
inputs:
tag-suffix:
required: false
type: string
release-title:
required: false
type: string
default: Build
jobs:
bump-package-json-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 14
uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- name: Install Node modules
run: yarn ci
- name: 'Automated Version Bump'
uses: 'groyyo/gh-action-bump-version@main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-prefix: 'v'
tag-suffix: ${{ inputs.tag-suffix }}
- name: 'Sync React Native version with package.json version'
run: npx react-native-version
- name: 'Commit version sync changes'
uses: EndBug/add-and-commit@v9
with:
message: 'chore: react native - android & ios versions updated'
- name: 'Automated Release'
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: 'latest'
title: ${{ inputs.release-title }}