Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/actions/setup-js/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Setup JS
description: Sets up Node.js and install NPM dependencies

inputs:
enable-cache:
description: Determines if actions/setup-node will have cache enabled
required: true
type: boolean

runs:
using: composite
steps:
- name: Setup Node.js (with cache)
if: ${{ inputs.enable-cache }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache: yarn
node-version: 24

- name: Setup Node.js (without cache)
if: ${{ !inputs.enable-cache }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24

- name: Install NPM dependencies
run: yarn install --immutable
shell: bash
82 changes: 0 additions & 82 deletions .github/workflows/build-docs.yml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: deploy-docs

on:
push:
branches: [main]
paths:
- "docs/**"
- "packages/react-native-avoid-softinput/**"
- ".github/workflows/deploy-docs.yml"

jobs:
prepare-docs:
name: Prepare docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
fetch-depth: 0

- name: Setup JS
uses: ./.github/actions/setup-js
with:
enable-cache: false

- name: Install Docs npm packages
run: yarn docs/ install --immutable
shell: bash

- name: Build Docs artifacts
run: yarn docs/ build
shell: bash

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 #v5.0.0
with:
path: build

deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
needs: prepare-docs

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 #v5.0.0
24 changes: 12 additions & 12 deletions .github/workflows/lint-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ jobs:
name: Lint Kotlin/Java
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install modules
uses: actions/setup-node@v4
fetch-depth: 0

- name: Setup JS
uses: ./.github/actions/setup-js
with:
cache: "yarn"
registry-url: "https://registry.npmjs.org"
cache-dependency-path: "**/yarn.lock"
enable-cache: true

- name: Set Java version
uses: actions/setup-java@v3
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #v5.2.0
with:
distribution: 'temurin'
java-version: '17'
- run: yarn
- name: Spotless/Ktfmt

- name: Lint Android (Spotless/Ktfmt)
run: yarn lint:android
shell: bash
37 changes: 17 additions & 20 deletions .github/workflows/lint-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,23 @@ on:
jobs:
lint-ios:
name: Lint ObjC
runs-on: macos-latest
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'packages/react-native-avoid-softinput/ios'
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install modules
uses: actions/setup-node@v4
fetch-depth: 0

- name: Setup JS
uses: ./.github/actions/setup-js
with:
enable-cache: true

- name: Run ClangFormat
uses: jidicula/clang-format-action@654a770daa28443dd111d133e4083e21c1075674 #v4.18.0
with:
cache: "yarn"
registry-url: "https://registry.npmjs.org"
cache-dependency-path: "**/yarn.lock"
- run: yarn
- name: ClangFormat
run: |
#!/bin/bash
if ! command -v clang-format &> /dev/null
then
echo "ClangFormat is not installed. Installing"
brew install clang-format
fi
yarn format:ios:objc
check-path: ${{ matrix.path }}
22 changes: 12 additions & 10 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@ jobs:
name: Lint JS/TS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install modules
uses: actions/setup-node@v4
fetch-depth: 0

- name: Setup JS
uses: ./.github/actions/setup-js
with:
cache: "yarn"
registry-url: "https://registry.npmjs.org"
cache-dependency-path: "**/yarn.lock"
- run: yarn
enable-cache: true
- name: Lint JS/TS
run: yarn lint:js
shell: bash

- name: TypeScript
run: yarn typescript
shell: bash

- name: Prepare library
run: yarn prepare
shell: bash
47 changes: 0 additions & 47 deletions .github/workflows/npm-release-template.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/pre-release.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/release-major.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/release-minor.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/release-patch.yml

This file was deleted.

Loading
Loading