1
0
mirror of https://github.com/tooot-app/app synced 2024-12-22 07:34:06 +01:00

Enable corepack for yarn 3

This commit is contained in:
xmflsct 2022-12-24 12:55:51 +01:00
parent e1f951eb8c
commit ea5705a6de
3 changed files with 26 additions and 41 deletions

View File

@ -9,20 +9,16 @@ jobs:
build-ios: build-ios:
runs-on: macos-12 runs-on: macos-12
steps: steps:
- name: -- Step 0 -- Extract branch name - uses: tj-actions/branch-names@v6
uses: tj-actions/branch-names@v6
id: branch id: branch
- name: -- Step 1 -- Checkout code - uses: actions/checkout@v3
uses: actions/checkout@v3 - uses: actions/setup-node@v3
- name: -- Step 2 -- Setup node
uses: actions/setup-node@v3
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- name: -- Step 3 -- Install node dependencies - run: corepack enable
run: yarn install - run: yarn install
- name: -- Step 4 -- Install ruby dependencies - run: bundle install
run: bundle install - run: yarn app:build ios
- name: -- Step 5 -- Run fastlane
env: env:
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
ENVIRONMENT: ${{ steps.branch.outputs.current_branch }} ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
@ -40,30 +36,24 @@ jobs:
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }} GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }}
run: yarn app:build ios
build-android: build-android:
runs-on: macos-12 runs-on: macos-12
steps: steps:
- name: -- Step 0 -- Extract branch name - uses: tj-actions/branch-names@v6
uses: tj-actions/branch-names@v6
id: branch id: branch
- name: -- Step 1 -- Checkout code - uses: actions/checkout@v3
uses: actions/checkout@v3 - uses: actions/setup-node@v3
- name: -- Step 2 -- Setup node
uses: actions/setup-node@v3
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- name: -- Step 3 -- Setup Java - uses: actions/setup-java@v3
uses: actions/setup-java@v3
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: '11' java-version: '11'
- name: -- Step 4 -- Install node dependencies - run: corepack enable
run: yarn install - run: yarn install
- name: -- Step 5 -- Install ruby dependencies - run: bundle install
run: bundle install - run: yarn app:build android
- name: -- Step 6 -- Run fastlane
env: env:
ENVIRONMENT: ${{ steps.branch.outputs.current_branch }} ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
SENTRY_ENVIRONMENT: ${{ steps.branch.outputs.current_branch }} SENTRY_ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
@ -75,31 +65,25 @@ jobs:
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }} ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }} SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }} GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }}
run: yarn app:build android
create-release: create-release:
runs-on: macos-12 runs-on: macos-12
needs: [build-ios, build-android] needs: [build-ios, build-android]
steps: steps:
- name: -- Step 0 -- Extract branch name - uses: tj-actions/branch-names@v6
uses: tj-actions/branch-names@v6
id: branch id: branch
- name: -- Step 1 -- Checkout code - uses: actions/checkout@v3
uses: actions/checkout@v3 - uses: actions/setup-node@v3
- name: -- Step 2 -- Setup node
uses: actions/setup-node@v3
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- name: -- Step 3 -- Setup Java - uses: actions/setup-java@v3
uses: actions/setup-java@v3
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: '11' java-version: '11'
- name: -- Step 4 -- Install node dependencies - run: corepack enable
run: yarn install - run: yarn install
- name: -- Step 5 -- Install ruby dependencies - run: bundle install
run: bundle install - run: yarn app:build release
- name: -- Step 6 -- Run fastlane
env: env:
ENVIRONMENT: ${{ steps.branch.outputs.current_branch }} ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
SENTRY_ENVIRONMENT: ${{ steps.branch.outputs.current_branch }} SENTRY_ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
@ -113,4 +97,3 @@ jobs:
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }} ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }} ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }} FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
run: yarn app:build release

View File

@ -1,3 +1,4 @@
Enjoy toooting! This version includes following improvements and fixes: Enjoy toooting! This version includes following improvements and fixes:
- Allowing adding more context of reports - Allowing adding more context of reports
- Option to disable autoplay gif - Option to disable autoplay gif
- Hide boosts from users

View File

@ -1,3 +1,4 @@
toooting愉快此版本包括以下改进和修复 toooting愉快此版本包括以下改进和修复
- 可添加举报细节 - 可添加举报细节
- 新增暂停自动播放gif动画选项 - 新增暂停自动播放gif动画选项
- 隐藏用户的转嘟