-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.49 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Publish Package to CocoaPods and npmjs
on:
release:
types: [published]
jobs:
publish-ios-client:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Install Cocoapods
run: gem install cocoapods
- name: Deploy to Cocoapods
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
publish-react-native-client:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- run: corepack enable
- run: yarn
- run: yarn prepare
- name: Publish to NPM
run: yarn npm publish --access public
working-directory: packages/react-native-client
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-android-client:
# Packages built by Jitpack are not immediately available upon the creation of a tag or branch.
# Instead, availability occurs when an initial attempt is made to download the specified tag or branch.
# This mechanism ensures that Jitpack only builds a package when it is first requested and efficiently handles the generation of newly released versions.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch POM file
run: yarn jitpack-cache ${{ github.ref_name }}
working-directory: packages/android-client