-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/5.0.1
- Loading branch information
Showing
5 changed files
with
112 additions
and
57 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version: 2.1 | ||
orbs: | ||
rn: react-native-community/[email protected] | ||
revenuecat: revenuecat/sdks-common-config@1.1.0 | ||
revenuecat: revenuecat/sdks-common-config@2.0.0 | ||
|
||
aliases: | ||
release-tags: &release-tags | ||
|
@@ -10,53 +10,19 @@ aliases: | |
ignore: /^.*-SNAPSHOT/ | ||
branches: | ||
ignore: /.*/ | ||
release-branches: &release-branches | ||
filters: | ||
tags: | ||
ignore: /.*/ | ||
branches: | ||
only: /^release\/.*/ | ||
|
||
commands: | ||
install-dependencies: | ||
steps: | ||
- run: | ||
name: Yarn Install | ||
command: yarn install --non-interactive --cache-folder /tmp/yarn | ||
|
||
set_up_git_user: | ||
description: Set git config parameters | ||
steps: | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "RevenueCat CI" | ||
|
||
trust-github-key: | ||
steps: | ||
- run: | ||
name: Trust GitHub key | ||
command: | | ||
for ip in $(dig @8.8.8.8 github.com +short); \ | ||
do ssh-keyscan github.com,$ip; \ | ||
ssh-keyscan $ip; \ | ||
done 2>/dev/null >> ~/.ssh/known_hosts | ||
install-rubydocker-dependencies: | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-rubydocker-gem-cache-{{ checksum "Gemfile.lock" }} | ||
- run: | ||
name: Bundle install | ||
command: bundle install --clean --path vendor/bundle | ||
- save_cache: | ||
key: v1-rubydocker-gem-cache-{{ checksum "Gemfile.lock" }} | ||
paths: | ||
- vendor/bundle | ||
install-mac-dependencies: | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-gem-cache-{{ checksum "Gemfile.lock" }} | ||
- run: | ||
name: Bundle install | ||
command: bundle install --clean --path vendor/bundle | ||
- save_cache: | ||
key: v1-gem-cache-{{ checksum "Gemfile.lock" }} | ||
paths: | ||
- vendor/bundle | ||
copy-npm-rc: | ||
steps: | ||
- run: | ||
|
@@ -90,8 +56,9 @@ jobs: | |
steps: | ||
- checkout | ||
- install-dependencies | ||
- install-mac-dependencies | ||
- set_up_git_user | ||
- revenuecat/install-gem-mac-dependencies: | ||
cache-version: v1 | ||
- revenuecat/setup-git-credentials | ||
- run: | ||
name: Build docs | ||
command: bundle exec fastlane generate_docs | ||
|
@@ -140,9 +107,10 @@ jobs: | |
- image: cimg/ruby:3.1.2 | ||
steps: | ||
- checkout | ||
- install-rubydocker-dependencies | ||
- trust-github-key | ||
- set_up_git_user | ||
- revenuecat/install-gem-unix-dependencies: | ||
cache-version: v1 | ||
- revenuecat/trust-github-key | ||
- revenuecat/setup-git-credentials | ||
- run: | ||
name: Prepare next version | ||
command: bundle exec fastlane prepare_next_version | ||
|
@@ -155,21 +123,35 @@ jobs: | |
steps: | ||
- checkout | ||
- install-dependencies | ||
- install-mac-dependencies | ||
- trust-github-key | ||
- revenuecat/install-gem-mac-dependencies: | ||
cache-version: v1 | ||
- revenuecat/trust-github-key | ||
- copy-npm-rc | ||
- run: | ||
name: release | ||
command: bundle exec fastlane release | ||
|
||
workflows: | ||
test: | ||
when: | ||
not: | ||
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ] | ||
jobs: | ||
- analyse_js | ||
- android | ||
- ios | ||
deploy: | ||
when: | ||
not: | ||
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ] | ||
jobs: | ||
- hold: | ||
type: approval | ||
<<: *release-branches | ||
- revenuecat/tag-current-branch: | ||
requires: | ||
- hold | ||
<<: *release-branches | ||
- make-release: | ||
<<: *release-tags | ||
- prepare-next-version: | ||
|
@@ -181,5 +163,15 @@ workflows: | |
requires: | ||
- make-release | ||
danger: | ||
when: | ||
not: | ||
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ] | ||
jobs: | ||
- revenuecat/danger | ||
weekly-run-workflow: | ||
when: | ||
and: | ||
- equal: [ scheduled_pipeline, << pipeline.trigger_source >> ] | ||
- equal: [ "release-train", << pipeline.schedule.name >> ] | ||
jobs: | ||
- revenuecat/automatic-bump |
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
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
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
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