Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'o/next' into pr/roffelund/3215
- Loading branch information
Showing
634 changed files
with
47,418 additions
and
7,813 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,46 +1,49 @@ | ||
name: Build and Deploy next version | ||
name: Bleeding Edge version | ||
on: | ||
push: | ||
branches: | ||
- next | ||
- "next" | ||
paths-ignore: | ||
- 'website/**' | ||
- "website/**" | ||
- "example/**" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build dist | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
- name: Setup Node.js Env | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Cache Dependencies | ||
node-version: "14" | ||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
id: rne-dists-deploy | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-rne-dists-deploy-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install | ||
if: steps.rne-dists-deploy.outputs.cache-hit != 'true' # Over here! | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-dist-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-dist- | ||
- name: Install Dependencies | ||
run: yarn | ||
- name: Build | ||
- name: Build packages | ||
run: yarn build | ||
- name: Config git | ||
run: | | ||
git config --local user.email "react-native-elements-ci@users.noreply.github.com" | ||
git config --local user.name "React Native Elements CI" | ||
- name: Create local changes | ||
run: | | ||
sed -i -e '/dist/d' .gitignore | ||
sed -i -e 's/dist/src/g' .gitignore | ||
echo "tsconfig.json" >> .gitignore | ||
echo "*.config.json" >> .gitignore | ||
git add . | ||
- name: Commit files | ||
git commit -m "Bleeding Edge Version" -a | ||
- name: Deploy Bleeding Edge version'@react-native-elements/*' packages | ||
run: | | ||
git config --local user.email "react-native-elements-ci@users.noreply.github.com" | ||
git config --local user.name "React Native Elements CI" | ||
git commit -m "New build" -a | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: dist | ||
force: true | ||
for pkg in $(find ./packages -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do | ||
echo "Deploying @react-native-elements/$pkg" | ||
git push origin `git subtree split --prefix packages/$pkg -b $pkg`:refs/heads/$pkg --force | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Expo Preview | ||
on: | ||
pull_request: | ||
branches: | ||
- "next" | ||
paths: | ||
- "src/**" | ||
|
||
jobs: | ||
publish: | ||
name: Install and publish Expo preview | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'react-native-elements/react-native-elements'}} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14" | ||
- name: Setup Expo | ||
uses: expo/expo-github-action@v6 | ||
with: | ||
expo-version: 5.x | ||
username: ${{ secrets.EXPO_CLI_USERNAME }} | ||
password: ${{ secrets.EXPO_CLI_PASSWORD }} | ||
expo-cache: true | ||
|
||
- name: Install dependencies & build PR | ||
run: yarn && tsc | ||
|
||
- name: Clone RNE-app & install dependencies | ||
run: | | ||
git clone https://github.com/react-native-elements/react-native-elements-app demo-app | ||
cd demo-app | ||
npm i | ||
mv ../dist/ ./node_modules/react-native-elements/dist | ||
- name: Publish Expo app | ||
working-directory: demo-app | ||
run: | | ||
expo login -u ${{ secrets.EXPO_CLI_USERNAME }} -p ${{ secrets.EXPO_CLI_PASSWORD }} | ||
expo publish --release-channel=pr-${{ github.event.number }} | ||
- name: Get expo link | ||
id: expo | ||
run: echo "::set-output name=path::@flyingcircle/react-native-elements-app?release-channel=pr-${{ github.event.number }}" | ||
|
||
- name: Comment on PR | ||
uses: unsplash/comment-on-pr@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
msg: The mobile version of example app from this branch is ready! You can [see it here](https://expo.dev/${{ steps.expo.outputs.path }})<br><br><a href="https://exp.host/${{ steps.expo.outputs.path }}"><img src="https://api.qrserver.com/v1/create-qr-code/?size=400x400&data=exp://exp.host/${{ steps.expo.outputs.path }}" height="200px" width="200px"></a>. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web-build |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "@react-native-community", | ||
"rules": { | ||
"react-native/no-inline-styles": 0, | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"ignoreRestSiblings": true | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.idea | ||
.vscode | ||
.DS_Store | ||
web-build/ | ||
web-report/ | ||
|
||
node_modules/* | ||
dist/* | ||
.expo/* | ||
npm-debug.* | ||
*.log | ||
|
||
/beta | ||
|
||
.expo-shared/ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/node_modules | ||
/.expo | ||
/web | ||
/*.json |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": true | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Oops, something went wrong.