Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhiqingchen/taro-react-native-release
Use this action to package your Taro React Native project and generate bundles for Android and iOS.
https://github.com/zhiqingchen/taro-react-native-release
actions android github-actions ios react react-native taro typescript
Last synced: 18 days ago
JSON representation
Use this action to package your Taro React Native project and generate bundles for Android and iOS.
- Host: GitHub
- URL: https://github.com/zhiqingchen/taro-react-native-release
- Owner: zhiqingchen
- License: mit
- Created: 2021-11-08T09:32:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T23:07:16.000Z (over 1 year ago)
- Last Synced: 2024-10-26T12:39:32.888Z (20 days ago)
- Topics: actions, android, github-actions, ios, react, react-native, taro, typescript
- Language: TypeScript
- Homepage:
- Size: 2.5 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Github action for bundle taro react native project
Use this action to package your [Taro React Native](https://docs.taro.zone/) project and generate bundles for Android and iOS. Others can use [Taro Playground APP](https://github.com/wuba/taro-playground) to load the bundle for project preview.
Make it easier to share your ideas.
## Attention
0. Your React Native version and dependencies must be compatible with the [Taro Playground APP](https://github.com/wuba/taro-playground/blob/main/package.json).
1. Taro version needs to be greater than or equal to 3.3.13.
2. add `!release/**` to the `.gitignore` file.
## Workflow1. Execute `yarn build:rn` to build the bundle.
2. Generate a [Taro Playground APP](https://github.com/wuba/taro-playground) protocol, including platform, name, logo and bundle url.
3. Export the protocol to a file with a QR code.
4. Commit the changes.
5. If `GITHUB_REF_NAME` is tag
1. Delete the original tag and re-tag it.
2. Generate a release, including the QR code and other information.
6. If `GITHUB_REF_NAME` is branch
1. Push the changes to the branch.## Usage
### Basic Config
```yml
on:
push:
tags: [ v* ]
workflow_dispatch:jobs:
taro_release_job:
runs-on: ubuntu-latest
name: Taro Bundle Release
steps:
- name: Release Taro React Native bundle
uses: zhiqingchen/taro-react-native-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
appname: Taro-Mortgage-calculator
logo: https://pic3.58cdn.com.cn/nowater/fangfe/n_v25b1523466b894881b9bdeda7618a8af2.png
```### Options
see [action.yml](./action.yml) for details.
### Examples
0. [Taro-Mortgage-Calculator](https://github.com/wuba/Taro-Mortgage-Calculator/tree/master/.github/workflows/main.yml)
1. [rick-and-morty-wiki](https://github.com/rick-and-morty-wiki/rick-and-morty-wiki/blob/master/.github/workflows/main.yml)
2. [Taro-UI](https://github.com/wuba/taro-ui-rn/blob/feature-support-rn/.github/workflows/rn-release.yml)## Acknowledgements
We use [jsDelivr](https://www.jsdelivr.com/?docs=gh) as the cdn service.
## LICENSEThe MIT License (MIT)