Skip to content

Commit 1d103a7

Browse files
workflow consolidation (#383)
Co-authored-by: Cedric Guillemet <[email protected]>
1 parent 1f4361c commit 1d103a7

8 files changed

+28
-134
lines changed

.github/workflows/ios_android.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
react-native-version:
77
required: true
88
type: string
9+
release-version:
10+
required: true
11+
type: string
912

1013
jobs:
1114
Build:
@@ -31,7 +34,7 @@ jobs:
3134
run: npm install
3235
working-directory: ./Package
3336
- name: Gulp
34-
run: npx gulp --reactNative ${{ inputs.react-native-version }} --releaseVersion ${{ github.event.release.name }}
37+
run: npx gulp --reactNative ${{ inputs.react-native-version }} --releaseVersion ${{ inputs.release-version }}
3538
working-directory: ./Package
3639
- name: Upload Assembled iOS Android Folder
3740
uses: actions/upload-artifact@v2

.github/workflows/ios_android_tag.yml

-43
This file was deleted.

.github/workflows/publish.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,30 @@ jobs:
88
uses: ./.github/workflows/ios_android.yml
99
with:
1010
react-native-version: 0.64
11+
release-version: ${GITHUB_REF/refs\/tags\//}
1112

1213
build-android-ios-065:
1314
uses: ./.github/workflows/ios_android.yml
1415
with:
1516
react-native-version: 0.65
17+
release-version: ${GITHUB_REF/refs\/tags\//}
1618

1719
build-windows-064:
1820
uses: ./.github/workflows/windows.yml
1921
with:
2022
react-native-version: 0.64
23+
release-version: ${GITHUB_REF/refs\/tags\//}
2124

2225
build-windows-065:
2326
uses: ./.github/workflows/windows.yml
2427
with:
2528
react-native-version: 0.65
29+
release-version: ${GITHUB_REF/refs\/tags\//}
2630

2731
build-typescript:
2832
uses: ./.github/workflows/typescript.yml
33+
with:
34+
release-version: ${GITHUB_REF/refs\/tags\//}
2935

3036
package:
3137
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-windows-064, build-windows-065]
@@ -103,6 +109,6 @@ jobs:
103109
run: |
104110
npm version --no-git-tag-version ${GITHUB_REF/refs\/tags\//}
105111
npm publish --access public
106-
working-directory: ./Package/Assembled-Windows0.64
112+
working-directory: ./Package/Assembled-Windows0.65
107113
env:
108114
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish_preview.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
description: 'NPM Release Version'
77
required: true
88
type: string
9-
default: 0.0.1
9+
default: 1.0.0
1010
NPM_tag:
1111
description: 'NPM Tag'
1212
required: true
@@ -15,31 +15,31 @@ on:
1515

1616
jobs:
1717
build-android-ios-064:
18-
uses: ./.github/workflows/ios_android_tag.yml
18+
uses: ./.github/workflows/ios_android.yml
1919
with:
2020
react-native-version: 0.64
2121
release-version: ${{ github.event.inputs.release_version }}
2222

2323
build-android-ios-065:
24-
uses: ./.github/workflows/ios_android_tag.yml
24+
uses: ./.github/workflows/ios_android.yml
2525
with:
2626
react-native-version: 0.65
2727
release-version: ${{ github.event.inputs.release_version }}
2828

2929
build-windows-064:
30-
uses: ./.github/workflows/windows_tag.yml
30+
uses: ./.github/workflows/windows.yml
3131
with:
3232
react-native-version: 0.64
3333
release-version: ${{ github.event.inputs.release_version }}
3434

3535
build-windows-065:
36-
uses: ./.github/workflows/windows_tag.yml
36+
uses: ./.github/workflows/windows.yml
3737
with:
3838
react-native-version: 0.65
3939
release-version: ${{ github.event.inputs.release_version }}
4040

4141
build-typescript:
42-
uses: ./.github/workflows/typescript_tag.yml
42+
uses: ./.github/workflows/typescript.yml
4343
with:
4444
release-version: ${{ github.event.inputs.release_version }}
4545

.github/workflows/typescript.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: 'build Typescript'
22

3-
on: [workflow_call]
4-
3+
on:
4+
workflow_call:
5+
inputs:
6+
release-version:
7+
required: true
8+
type: string
59
jobs:
610
Build:
711
runs-on: macos-latest
@@ -20,7 +24,7 @@ jobs:
2024
run: npm install
2125
working-directory: ./Package
2226
- name: Gulp
23-
run: npx gulp buildTS --releaseVersion ${{ github.event.release.name }}
27+
run: npx gulp buildTS --releaseVersion ${{ inputs.release-version }}
2428
working-directory: ./Package
2529
- name: Upload Assembled Folder
2630
uses: actions/upload-artifact@v2

.github/workflows/typescript_tag.yml

-33
This file was deleted.

.github/workflows/windows.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
react-native-version:
77
required: true
88
type: string
9+
release-version:
10+
required: true
11+
type: string
912

1013
jobs:
1114
Build:
@@ -31,7 +34,7 @@ jobs:
3134
run: npm install
3235
working-directory: ./Package
3336
- name: Git (Windows)
34-
run: npx gulp initializeSubmodulesWindowsAgent --reactNative ${{ inputs.react-native-version }} --releaseVersion ${{ github.event.release.name }}
37+
run: npx gulp initializeSubmodulesWindowsAgent --reactNative ${{ inputs.react-native-version }} --releaseVersion ${{ inputs.release-version }}
3538
working-directory: ./Package
3639
- name: Gulp (Windows)
3740
run: npx gulp buildUWPPublish

.github/workflows/windows_tag.yml

-46
This file was deleted.

0 commit comments

Comments
 (0)