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
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
types:
- checks_requested
Expand Down Expand Up @@ -55,14 +52,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref || github.ref_name }}

- name: Setup
uses: ./.github/actions/setup

- name: Initialize Git user
run: |
git config --global user.name "Release Workflow"
git config --global user.email "${{ secrets.GIT_EMAIL }}"

- name: Authenticate GitHub Actions
run: git remote set-url origin https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}

- name: Initialize the NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Deploy package to NPM
run: yarn release --ci
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-input-code-otp",
"version": "0.4.0",
"version": "0.5.1",
"description": "react-native-input-code-otp is a high-performance and fully customizable OTP input component for React Native, inspired by @shadcn/ui.",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
Expand Down