Skip to content

chore(ci): add GitHub Pages deploy and skip TCB when secrets missing #25

chore(ci): add GitHub Pages deploy and skip TCB when secrets missing

chore(ci): add GitHub Pages deploy and skip TCB when secrets missing #25

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/rn-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rn-release.yml

Invalid workflow file

(Line: 32, Col: 9): 'with' is already defined
push:
tags: [ v* ]
workflow_dispatch:
jobs:
taro_release_job:
runs-on: ubuntu-latest
name: Taro Bundle Release
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Cache node_modules Folder
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-node_modules
restore-keys: ${{ runner.os }}-node_modules
- name: Cache pnpm modules
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: install
uses: pnpm/action-setup@v4
with:
version: 9
with:
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Release Taro React Native bundle
uses: zhiqingchen/taro-react-native-release@v1
with:
workingdirectory: ./packages/taro-ui-demo-rn
token: ${{ secrets.GITHUB_TOKEN }}
appname: Taro-UI-Demo
logo: https://pic5.58cdn.com.cn/nowater/fangfe/n_v25a185c1657984016926f26af591912c4.jpg
- name: Upload Qr Image
uses: actions/upload-artifact@v4
with:
name: bundle-qr-code
path: |
packages/taro-ui-demo-rn/release/qrcode/ios.png
packages/taro-ui-demo-rn/release/qrcode/android.png