Skip to content

Commit 1c94754

Browse files
authored
Merge pull request #6 from johelder/dev
dev->main
2 parents 17ddc63 + 45d0f63 commit 1c94754

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
pull_request:
7-
branches:
8-
- main
96
merge_group:
107
types:
118
- checks_requested
@@ -55,14 +52,28 @@ jobs:
5552
steps:
5653
- name: Checkout
5754
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
ref: ${{ github.head_ref || github.ref_name }}
5858

5959
- name: Setup
6060
uses: ./.github/actions/setup
6161

62+
- name: Initialize Git user
63+
run: |
64+
git config --global user.name "Release Workflow"
65+
git config --global user.email "${{ secrets.GIT_EMAIL }}"
66+
67+
- name: Authenticate GitHub Actions
68+
run: git remote set-url origin https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
69+
6270
- name: Initialize the NPM config
6371
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
6472
env:
6573
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6674

6775
- name: Deploy package to NPM
6876
run: yarn release --ci
77+
env:
78+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
79+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-input-code-otp",
3-
"version": "0.4.0",
3+
"version": "0.5.1",
44
"description": "react-native-input-code-otp is a high-performance and fully customizable OTP input component for React Native, inspired by @shadcn/ui.",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

0 commit comments

Comments
 (0)