-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publishing without release GitHub Action (#366)
* new publishing GA * removed comments Co-authored-by: Cedric Guillemet <[email protected]>
- Loading branch information
1 parent
69b80a1
commit 9054098
Showing
4 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: 'build ios-android' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
react-native-version: | ||
required: true | ||
type: string | ||
Release_Version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
Build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/[email protected] | ||
with: | ||
submodules: 'recursive' | ||
- name: Setup CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.19.6' # See https://gitlab.kitware.com/cmake/cmake/-/issues/22021 | ||
- name: Setup Ninja | ||
run: brew install ninja | ||
- name: NPM Install (Playground) | ||
run: npm install | ||
working-directory: ./Apps/Playground | ||
- name: Select React Native Version ${{ inputs.react-native-version }} | ||
run: npm run select --reactNative ${{ inputs.react-native-version }} | ||
working-directory: ./Apps/Playground | ||
- name: NPM Install (Binary Package) | ||
run: npm install | ||
working-directory: ./Package | ||
- name: Gulp | ||
run: npx gulp --reactNative ${{ inputs.react-native-version }} --releaseVersion ${{ inputs.Release_Version }} | ||
working-directory: ./Package | ||
- name: Upload Assembled iOS Android Folder | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: 'Assembled-iOSAndroid${{ inputs.react-native-version }}' | ||
path: Package/Assembled-iOSAndroid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: Publish Package Without Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_version: | ||
description: 'NPM Release Version' | ||
required: true | ||
type: string | ||
default: 0.0.1 | ||
|
||
jobs: | ||
build-android-ios-064: | ||
uses: ./.github/workflows/ios_android.yml | ||
with: | ||
react-native-version: 0.64 | ||
Release_Version: ${{ github.event.inputs.release_version }} | ||
|
||
build-android-ios-065: | ||
uses: ./.github/workflows/ios_android.yml | ||
with: | ||
react-native-version: 0.65 | ||
Release_Version: ${{ github.event.inputs.release_version }} | ||
|
||
build-windows-064: | ||
uses: ./.github/workflows/windows.yml | ||
with: | ||
react-native-version: 0.64 | ||
Release_Version: ${{ github.event.inputs.release_version }} | ||
|
||
build-windows-065: | ||
uses: ./.github/workflows/windows.yml | ||
with: | ||
react-native-version: 0.65 | ||
Release_Version: ${{ github.event.inputs.release_version }} | ||
|
||
build-typescript: | ||
uses: ./.github/workflows/typescript.yml | ||
with: | ||
Release_Version: ${{ github.event.inputs.release_version }} | ||
|
||
package: | ||
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-windows-064, build-windows-065] | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/[email protected] | ||
- name: NPM Install (Binary Package) | ||
run: npm install | ||
working-directory: ./Package | ||
- name: Download Assembled Folder | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: 'Assembled' | ||
path: Package/Assembled | ||
- name: Download Assembled-iOSAndroid 0.64 Folder | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: 'Assembled-iOSAndroid0.64' | ||
path: Package/Assembled-iOSAndroid0.64 | ||
- name: Download Assembled-iOSAndroid 0.65 Folder | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: 'Assembled-iOSAndroid0.65' | ||
path: Package/Assembled-iOSAndroid0.65 | ||
- name: Download Assembled-Windows 0.64 Folder | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: 'Assembled-Windows0.64' | ||
path: Package/Assembled-Windows0.64 | ||
- name: Download Assembled-Windows 0.65 Folder | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: 'Assembled-Windows0.65' | ||
path: Package/Assembled-Windows0.65 | ||
- name: Display structure of downloaded Assembled and Assembled-Windows folders | ||
run: ls -R | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '12.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@babylonjs' | ||
- name: Version & Publish Package @babylonjs/react-native | ||
run: | | ||
npm version --no-git-tag-version ${{ github.event.inputs.release_version }} | ||
npm publish --access public | ||
working-directory: ./Package/Assembled | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Version & Publish Package @babylonjs/react-native-iosandroid-0-64 | ||
run: | | ||
npm version --no-git-tag-version ${{ github.event.inputs.release_version }} | ||
npm publish --access public | ||
working-directory: ./Package/Assembled-iOSAndroid0.64 | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Version & Publish Package @babylonjs/react-native-iosandroid-0-65 | ||
run: | | ||
npm version --no-git-tag-version ${{ github.event.inputs.release_version }} | ||
npm publish --access public | ||
working-directory: ./Package/Assembled-iOSAndroid0.65 | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Version & Publish Package @babylonjs/react-native-windows-0-64 | ||
run: | | ||
npm version --no-git-tag-version ${{ github.event.inputs.release_version }} | ||
npm publish --access public | ||
working-directory: ./Package/Assembled-Windows0.64 | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Version & Publish Package @babylonjs/react-native-windows-0-65 | ||
run: | | ||
npm version --no-git-tag-version ${{ github.event.inputs.release_version }} | ||
npm publish --access public | ||
working-directory: ./Package/Assembled-Windows0.64 | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 'build Typescript' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
Release_Version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
Build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/[email protected] | ||
with: | ||
submodules: 'recursive' | ||
- name: NPM Install (Playground) | ||
run: npm install | ||
working-directory: ./Apps/Playground | ||
- name: Select React Native Version | ||
run: npm run select 0.64 | ||
working-directory: ./Apps/Playground | ||
- name: NPM Install (Binary Package) | ||
run: npm install | ||
working-directory: ./Package | ||
- name: Gulp | ||
run: npx gulp buildTS --releaseVersion ${{ inputs.Release_Version }} | ||
working-directory: ./Package | ||
- name: Upload Assembled Folder | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: 'Assembled' | ||
path: Package/Assembled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'build windows' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
react-native-version: | ||
required: true | ||
type: string | ||
Release_Version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
Build: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/[email protected] | ||
with: | ||
submodules: 'true' | ||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
- name: Setup NuGet | ||
uses: nuget/setup-nuget@v1 | ||
with: | ||
nuget-version: '5.x' | ||
- name: NPM Install (Playground) | ||
run: npm install | ||
working-directory: ./Apps/Playground | ||
- name: NPM Install (React Native ${{ inputs.react-native-version }}) | ||
run: npm run select --reactNative ${{ inputs.react-native-version }} | ||
working-directory: ./Apps/Playground | ||
- name: NPM Install (Binary Package) | ||
run: npm install | ||
working-directory: ./Package | ||
- name: Git (Windows) | ||
run: npx gulp initializeSubmodulesWindowsAgent --reactNative ${{ inputs.react-native-version }} --releaseVersion ${{ inputs.Release_Version }} | ||
working-directory: ./Package | ||
- name: Gulp (Windows) | ||
run: npx gulp buildUWPPublish | ||
working-directory: ./Package | ||
- name: Upload Assembled-Windows Folder | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: 'Assembled-Windows${{ inputs.react-native-version }}' | ||
path: Package/Assembled-Windows |