refactor(tests): 更新Jest配置,添加模块文件扩展名和设置文件以支持新功能 #148
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
name: Update | |
on: | |
push: | |
branches: | |
- update | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: Setup new yarn | |
run: | | |
corepack enable | |
yarn set version 4.5.0 | |
- name: 🏗 Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: yarn | |
- name: 🏗 Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: 📦 Install dependencies | |
run: | |
yarn install | |
- name: 🚀 Create update | |
run: eas update --channel production --platform android --auto --non-interactive | |
- name: Upload Source Maps | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
run: | | |
npx sentry-expo-upload-sourcemaps dist | |