Skip to content

Commit 5fea7f8

Browse files
authored
Merge pull request #58 from JairajJangle/develop
Develop
2 parents 9f76d62 + 35ef111 commit 5fea7f8

7 files changed

Lines changed: 310 additions & 516 deletions

File tree

.github/workflows/beta-release.yml

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

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
pull_request:
78
branches:
89
- main
10+
- beta
11+
merge_group:
12+
types:
13+
- checks_requested
914

1015
jobs:
1116
lint:
@@ -68,7 +73,7 @@ jobs:
6873
issues: write # To comment on released issues
6974
pull-requests: write # To comment on released pull requests
7075
id-token: write # To enable use of OIDC for npm provenance
71-
if: github.ref == 'refs/heads/main'
76+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
7277
steps:
7378
- name: Checkout
7479
uses: actions/checkout@v4
@@ -82,16 +87,11 @@ jobs:
8287
uses: actions/setup-node@v4
8388
with:
8489
node-version: "lts/*" # Use the latest LTS version of Node.js
85-
registry-url: 'https://registry.npmjs.org/' # Specify npm registry
86-
87-
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
88-
run: npm audit signatures # Check the signatures to verify integrity
8990

9091
- name: Release
9192
run: npx semantic-release # Run semantic-release to manage versioning and publishing
9293
env:
9394
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication
94-
95-
# Why NODE_AUTH_TOKEN instead of NPM_TOKEN: https://github.com/semantic-release/semantic-release/issues/2313
96-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # npm token for publishing package
95+
NPM_CONFIG_PROVENANCE: true
96+
9797

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
🔍 Component visibility sensor wrapper to sense whether or not a component is in viewport with configurable inset thresholds & percent visibility callback.
44

5-
[![npm version](https://img.shields.io/npm/v/%40futurejj%2Freact-native-visibility-sensor)](https://badge.fury.io/js/%40futurejj%2Freact-native-visibility-sensor) [![License](https://img.shields.io/github/license/JairajJangle/react-native-visibility-sensor)](https://github.com/JairajJangle/react-native-visibility-sensor/blob/main/LICENSE) [![Workflow Status](https://github.com/JairajJangle/react-native-visibility-sensor/actions/workflows/ci.yml/badge.svg)](https://github.com/JairajJangle/react-native-visibility-sensor/actions/workflows/ci.yml) ![Android](https://img.shields.io/badge/-Android-555555?logo=android&logoColor=3DDC84) ![iOS](https://img.shields.io/badge/-iOS-555555?logo=apple&logoColor=white) ![Web](https://img.shields.io/badge/-Web-555555?logo=google-chrome&logoColor=0096FF) [![GitHub issues](https://img.shields.io/github/issues/JairajJangle/react-native-visibility-sensor)](https://github.com/JairajJangle/react-native-visibility-sensor/issues?q=is%3Aopen+is%3Aissue) ![TS](https://img.shields.io/badge/TypeScript-strict_💪-blue) [![Expo Snack 1](https://img.shields.io/badge/Expo%20Snack-555555?style=flat&logo=expo&logoColor=white)](https://snack.expo.dev/@futurejj/react-native-visibility-sensor-example) [![Expo Snack 2](https://img.shields.io/badge/Expo%20Snack-555555?style=flat&logo=expo&logoColor=white)](https://snack.expo.dev/@futurejj/react-native-visibility-sensor-nested-scrollview) ![NPM Downloads](https://img.shields.io/npm/dm/%40futurejj%2Freact-native-visibility-sensor) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40futurejj%2Freact-native-visibility-sensor)
5+
[![npm version](https://img.shields.io/npm/v/%40futurejj%2Freact-native-visibility-sensor)](https://badge.fury.io/js/%40futurejj%2Freact-native-visibility-sensor) [![License](https://img.shields.io/github/license/JairajJangle/react-native-visibility-sensor)](https://github.com/JairajJangle/react-native-visibility-sensor/blob/main/LICENSE) [![Workflow Status](https://github.com/JairajJangle/react-native-visibility-sensor/actions/workflows/ci.yml/badge.svg)](https://github.com/JairajJangle/react-native-visibility-sensor/actions/workflows/ci.yml) ![Android](https://img.shields.io/badge/-Android-555555?logo=android&logoColor=3DDC84) ![iOS](https://img.shields.io/badge/-iOS-555555?logo=apple&logoColor=white) ![Web](https://img.shields.io/badge/-Web-555555?logo=google-chrome&logoColor=0096FF) [![GitHub issues](https://img.shields.io/github/issues/JairajJangle/react-native-visibility-sensor)](https://github.com/JairajJangle/react-native-visibility-sensor/issues?q=is%3Aopen+is%3Aissue) ![TS](https://img.shields.io/badge/TypeScript-strict_💪-blue) [![Expo Snack 1](https://img.shields.io/badge/Expo%20Snack-555555?style=flat&logo=expo&logoColor=white)](https://snack.expo.dev/@futurejj/react-native-visibility-sensor-example) [![Expo Snack 2](https://img.shields.io/badge/Expo%20Snack-555555?style=flat&logo=expo&logoColor=white)](https://snack.expo.dev/@futurejj/react-native-visibility-sensor-nested-scrollview) ![NPM Downloads](https://img.shields.io/npm/dm/%40futurejj%2Freact-native-visibility-sensor) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40futurejj%2Freact-native-visibility-sensor) [![Sponsor](https://img.shields.io/badge/Sponsor-GitHub-ea4aaa?style=flat&logo=github-sponsors)](https://github.com/sponsors/JairajJangle)
66

77
<div align="center">
88
<img src="https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExOXN4ZWs5ejdiYmZ5Zm5xaWw5YXZ5OGYwMmczcnFneXNiYW5hcDh6cCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/gEbrrDtgnoq6Fs8FNq/giphy.gif" alt="Visibility Sensor demo" style="border: 1px solid gray;" />

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12-
"expo": "^54.0.0",
12+
"expo": "^54.0.33",
1313
"react": "19.1.0",
1414
"react-dom": "19.1.0",
15-
"react-native": "0.81.4",
16-
"react-native-web": "^0.21.0"
15+
"react-native": "0.81.6",
16+
"react-native-web": "^0.21.2"
1717
},
1818
"private": true
1919
}

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@
6060
"provenance": true
6161
},
6262
"devDependencies": {
63-
"@commitlint/config-conventional": "^17.0.2",
63+
"@commitlint/config-conventional": "^20.4.1",
6464
"@evilmartians/lefthook": "^1.7.15",
6565
"@react-native-community/eslint-config": "^3.2.0",
66-
"@release-it/conventional-changelog": "^10.0.3",
66+
"@release-it/conventional-changelog": "^10.0.5",
6767
"@semantic-release/changelog": "^6.0.3",
6868
"@semantic-release/git": "^10.0.1",
69-
"@semantic-release/github": "^12.0.2",
70-
"@semantic-release/npm": "^13.1.3",
69+
"@semantic-release/github": "^12.0.5",
70+
"@semantic-release/npm": "^13.1.4",
7171
"@types/jest": "^29.5.12",
7272
"@types/react": "~18.3.5",
73-
"commitlint": "^19.4.1",
74-
"del-cli": "^5.1.0",
73+
"commitlint": "^19.8.1",
74+
"del-cli": "^7.0.0",
7575
"eslint": "^8.4.1",
7676
"eslint-config-prettier": "^10.1.1",
7777
"eslint-plugin-prettier": "^5.2.6",
@@ -80,10 +80,10 @@
8080
"prettier": "^3.3.3",
8181
"react": "18.3.1",
8282
"react-native": "0.76.9",
83-
"react-native-builder-bob": "^0.30.0",
83+
"react-native-builder-bob": "^0.30.3",
8484
"release-it": "^19.1.0",
85-
"semantic-release": "^25.0.2",
86-
"typescript": "5.0.4"
85+
"semantic-release": "^25.0.3",
86+
"typescript": "5.9.3"
8787
},
8888
"resolutions": {
8989
"@types/react": "~18.3.5"

release.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module.exports = {
2727
'@semantic-release/npm',
2828
{
2929
npmPublish: true,
30-
tag: 'beta', // Publishes with a 'beta' tag to npm
3130
},
3231
],
3332
'@semantic-release/github', // Handles GitHub releases

0 commit comments

Comments
 (0)