Skip to content

Commit 5c5307f

Browse files
fix: wip
1 parent e2da41c commit 5c5307f

File tree

7 files changed

+84
-20
lines changed

7 files changed

+84
-20
lines changed

.github/workflows/android.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ on:
1313
paths:
1414
- '.github/workflows/android.yml'
1515
- 'android/**'
16+
- 'common/**'
1617
- 'example/android/**'
1718

1819
jobs:
1920
android-build:
2021
runs-on: ubuntu-latest
2122
steps:
22-
- uses: actions/checkout@v3
23-
- name: Use Node.js 18.x
24-
uses: actions/setup-node@v3
23+
- uses: actions/checkout@v4
24+
- name: Use Node.js 20.x
25+
uses: actions/setup-node@v4
2526
with:
26-
node-version: 18.x
27+
node-version: 20.x
2728
- uses: actions/setup-java@v2
2829
with:
2930
distribution: 'temurin'
@@ -47,11 +48,11 @@ jobs:
4748
android-build-fabric:
4849
runs-on: ubuntu-latest
4950
steps:
50-
- uses: actions/checkout@v3
51-
- name: Use Node.js 18.x
51+
- uses: actions/checkout@v4
52+
- name: Use Node.js 20.x
5253
uses: actions/setup-node@v1
5354
with:
54-
node-version: 18.x
55+
node-version: 20.x
5556
- uses: actions/setup-java@v2
5657
with:
5758
distribution: 'temurin'

.github/workflows/docs-check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docs build check
2+
env:
3+
YARN_ENABLE_HARDENED_MODE: 0
4+
on:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- '.github/workflows/docs-check.yml'
10+
- docs/**
11+
pull_request:
12+
paths:
13+
- '.github/workflows/docs-check.yml'
14+
- docs/**
15+
jobs:
16+
build:
17+
if: github.repository == 'AppAndFlow/react-native-safe-area-context'
18+
runs-on: ubuntu-latest
19+
env:
20+
WORKING_DIRECTORY: docs
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Use Node.js 20.x
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20.x
27+
- name: Install docs deps
28+
working-directory: ${{ env.WORKING_DIRECTORY }}
29+
run: yarn install
30+
- name: Build docs
31+
working-directory: ${{ env.WORKING_DIRECTORY }}
32+
run: yarn build

.github/workflows/docs-deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Docs publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- docs
7+
paths:
8+
- docs/**
9+
10+
jobs:
11+
publish:
12+
if: github.repository == 'AppAndFlow/react-native-safe-area-context'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out
16+
uses: actions/checkout@v4
17+
18+
- name: Generate awesome content
19+
run: >-
20+
git config --local user.email "[email protected]"
21+
&& git config --local user.name "GitHub Action"
22+
&& cd docs
23+
&& yarn
24+
&& yarn build
25+
26+
- name: Publish generated content to GitHub Pages
27+
uses: JamesIves/github-pages-deploy-action@releases/v3
28+
with:
29+
FOLDER: packages/docs-reanimated/build
30+
BRANCH: gh-pages
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ios.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
ios-build:
2020
runs-on: macos-latest
2121
steps:
22-
- uses: actions/checkout@v3
23-
- name: Use Node.js 18.x
24-
uses: actions/setup-node@v3
22+
- uses: actions/checkout@v4
23+
- name: Use Node.js 20.x
24+
uses: actions/setup-node@v4
2525
with:
26-
node-version: 18.x
26+
node-version: 20.x
2727
- uses: ruby/setup-ruby@v1
2828
with:
2929
ruby-version: 2.7
@@ -43,11 +43,11 @@ jobs:
4343
ios-build-fabric:
4444
runs-on: macos-latest
4545
steps:
46-
- uses: actions/checkout@v3
47-
- name: Use Node.js 18.x
46+
- uses: actions/checkout@v4
47+
- name: Use Node.js 20.x
4848
uses: actions/setup-node@v1
4949
with:
50-
node-version: 18.x
50+
node-version: 20.x
5151
- uses: ruby/setup-ruby@v1
5252
with:
5353
ruby-version: 2.7

.github/workflows/js.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ jobs:
66
js-tests:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
- name: Use Node.js 18.x
11-
uses: actions/setup-node@v3
9+
- uses: actions/checkout@v4
10+
- name: Use Node.js 20.x
11+
uses: actions/setup-node@v4
1212
with:
13-
node-version: 18.x
13+
node-version: 20.x
1414
- name: Restore yarn workspaces
1515
id: yarn-cache
1616
uses: actions/cache@v3

docs/docs/testing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SyntaxError: Cannot use import statement outside a module.
6161
6262
This issue arises due to the use of the import statement. To resolve it, you need to permit Babel to parse the file.
6363
64-
By default, [Jest does not parse files located within the node_modules folder](<(https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)>).
64+
By default, [Jest does not parse files located within the node_modules folder](https://jestjs.io/docs/configuration#transformignorepatterns-arraystring).
6565
6666
However, you can modify this behavior as outlined in the Jest documentation on [`transformIgnorePatterns` customization](https://jestjs.io/docs/tutorial-react-native#transformignorepatterns-customization).
6767
If you're using a preset, like the one from [react-native](https://github.com/facebook/react-native/blob/main/packages/react-native/jest-preset.js), you should update your Jest configuration to include `react-native-safe-area-context` as shown below:

docs/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function HomepageHeader() {
1919
<div className={styles.buttons}>
2020
<Link
2121
className="button button--secondary button--lg"
22-
to="/docs/intro"
22+
to="/docs/getting-started"
2323
>
2424
Docusaurus Tutorial - 5min ⏱️
2525
</Link>

0 commit comments

Comments
 (0)