Use this action to package your Taro React Native project and generate bundles for Android and iOS. Others can use Taro Playground APP to load the bundle for project preview.
Make it easier to share your ideas.
- Your React Native version and dependencies must be compatible with the Taro Playground APP.
- Taro version needs to be greater than or equal to 3.3.13.
- add
!release/**
to the.gitignore
file.
- Execute
yarn build:rn
to build the bundle. - Generate a Taro Playground APP protocol, including platform, name, logo and bundle url.
- Export the protocol to a file with a QR code.
- Commit the changes.
- If
GITHUB_REF_NAME
is tag- Delete the original tag and re-tag it.
- Generate a release, including the QR code and other information.
- If
GITHUB_REF_NAME
is branch- Push the changes to the branch.
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
see action.yml for details.
We use jsDelivr as the cdn service.
The MIT License (MIT)