Skip to content

Commit 4904d79

Browse files
committed
Merge branch 'main' into @jpiasecki/move-flag-to-event
2 parents 08fc77d + 7c34268 commit 4904d79

564 files changed

Lines changed: 32027 additions & 13642 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/publish-npm-package/action.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.

.github/workflows/docs-check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
uses: actions/setup-node@v6
2626
with:
2727
node-version: 24
28-
cache: yarn
2928

3029
- name: Install node dependencies
3130
working-directory: ${{ env.WORKING_DIRECTORY }}

.github/workflows/main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ jobs:
1111

1212
runs-on: ubuntu-latest
1313

14+
permissions:
15+
contents: write
16+
1417
steps:
1518
- name: Check out
16-
uses: actions/checkout@v1
19+
uses: actions/checkout@v6
1720

1821
- name: Generate docs
1922
run: >-
@@ -24,8 +27,8 @@ jobs:
2427
&& yarn build
2528
2629
- name: Publish generated content to GitHub Pages
27-
uses: JamesIves/github-pages-deploy-action@releases/v3
30+
uses: JamesIves/github-pages-deploy-action@v4
2831
with:
29-
FOLDER: packages/docs-gesture-handler/build
30-
BRANCH: gh-pages
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
folder: packages/docs-gesture-handler/build
33+
branch: gh-pages
34+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-release.yml

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
name: Publish release to npm
22
on:
3-
# For commitlies
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- packages/react-native-gesture-handler/**
9-
# For stable releases
3+
# For nightly releases
4+
schedule:
5+
- cron: '27 23 * * *' # at 23:27 every day
6+
# For manual releases
107
workflow_dispatch:
118
inputs:
9+
release-type:
10+
description: Type of release to publish.
11+
type: choice
12+
options:
13+
- stable
14+
- nightly
15+
- beta
16+
- rc
17+
default: stable
18+
version:
19+
description: Specific version to publish (usually inferred from x.y-stable branch name).
20+
type: string
21+
required: false
22+
default: ''
1223
dry-run:
1324
description: Whether to perform a dry run of the publish.
1425
type: boolean
@@ -31,16 +42,36 @@ jobs:
3142
- name: Check out
3243
uses: actions/checkout@v4
3344

34-
- name: Publish stable release
45+
- name: Set up environment
46+
shell: bash
47+
run: |
48+
echo "YARN_ENABLE_HARDENED_MODE=0" >> $GITHUB_ENV
49+
50+
- name: Setup Node
51+
uses: actions/setup-node@v6
52+
with:
53+
node-version: 24
54+
cache: 'yarn'
55+
registry-url: https://registry.npmjs.org/
56+
57+
- name: Publish manual release
3558
if: ${{ github.event_name == 'workflow_dispatch' }}
36-
uses: ./.github/actions/publish-npm-package
59+
uses: software-mansion/npm-package-publish@273bbdd5df5d28ae2de6c3ecd4a6f8067e4ff370
3760
with:
38-
is-commitly: false
61+
package-name: 'react-native-gesture-handler'
62+
package-json-path: 'packages/react-native-gesture-handler/package.json'
63+
install-dependencies-command: 'yarn install --immutable'
64+
release-type: ${{ inputs.release-type }}
65+
version: ${{ inputs.version }}
3966
dry-run: ${{ inputs.dry-run }}
4067

41-
- name: Publish commitly release
42-
if: ${{ github.event_name == 'push' }}
43-
uses: ./.github/actions/publish-npm-package
68+
- name: Publish automatic nightly release
69+
if: ${{ github.event_name == 'schedule' }}
70+
uses: software-mansion/npm-package-publish@273bbdd5df5d28ae2de6c3ecd4a6f8067e4ff370
4471
with:
45-
is-commitly: true
72+
package-name: 'react-native-gesture-handler'
73+
package-json-path: 'packages/react-native-gesture-handler/package.json'
74+
install-dependencies-command: 'yarn install --immutable'
75+
release-type: 'nightly'
76+
version: "3.0.0"
4677
dry-run: false

.github/workflows/rngh-api-v3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
runs-on: ubuntu-latest
1919
concurrency:
20-
group: jest-${{ github.ref }}
20+
group: rngh-api-v3-${{ github.ref }}
2121
cancel-in-progress: true
2222

2323
steps:
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Run Jest tests
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/*.js'
7+
- '**/*.jsx'
8+
- '**/*.ts'
9+
- '**/*.tsx'
10+
push:
11+
branches:
12+
- main
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
if: github.repository == 'software-mansion/react-native-gesture-handler'
18+
19+
runs-on: ubuntu-latest
20+
concurrency:
21+
group: jest-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
steps:
25+
- name: checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Use Node.js 24
29+
uses: actions/setup-node@v6
30+
with:
31+
node-version: 24
32+
cache: yarn
33+
34+
- name: Install node dependencies
35+
run: yarn --immutable
36+
37+
- name: Run jest package tests
38+
run: yarn workspace react-native-gesture-handler test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ DerivedData
2626

2727
# Android/IntelliJ
2828
#
29+
bin/
2930
build/
3031
.idea
3132
.gradle

0 commit comments

Comments
 (0)