-
Notifications
You must be signed in to change notification settings - Fork 2
feat: adds release action #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughA new GitHub Actions workflow named "Release React Native SDK" has been added. It automates the process of building, testing, and publishing the React Native SDK package to npm whenever a GitHub release is published. The workflow includes steps for dependency installation, building, testing, and npm publishing with authentication. Changes
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes were found. ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (2)
.github/workflows/release.yml (2)
9-12: Add aconcurrencyblock to prevent duplicate publishes.When multiple releases are pushed in quick succession, parallel jobs can both reach
npm publish, racing and failing. A one-liner avoids that:release: runs-on: ubuntu-latest + concurrency: release-${{ github.ref }}
22-27: Cache pnpm store to cut CI time by ~70 %.
actions/setup-node@v4supports built-in caching; no extra steps needed.- name: Setup Node.js 20.x uses: actions/setup-node@v4 with: node-version: 20.x registry-url: https://registry.npmjs.org + cache: 'pnpm'
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/release.yml(1 hunks)
🔇 Additional comments (1)
.github/workflows/release.yml (1)
16-21: Running on Node 22.x is risky – the current LTS is 20.x.Node 22 is still “Current”; React-Native tool-chain and many deps are only tested on LTS lines (20/18). A surprise major-version break will block releases.
- node-version: 22.x + # Use stable LTS + node-version: 20.x
|



Adds a github action for releasing the react-native sdk to npm when we push a release.
Fixes #15
Summary by CodeRabbit