Skip to content

Commit 5641ebd

Browse files
committed
chore: update release workflow and package.json configuration
- Added 'src' directory to the package.json files list for inclusion in the package. - Cleaned up the publishArgs formatting in package.json for consistency.
1 parent 0cd020a commit 5641ebd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
3838
- name: Release
3939
working-directory: package
40-
run: bun run release --ci --increment ${{ inputs.version }}
40+
run: |
41+
if [ "${{ github.ref_name }}" = "main" ]; then
42+
bun run release --ci --increment ${{ inputs.version }}
43+
else
44+
bun run release --ci --increment ${{ inputs.version }} --npm.tag=legacy
45+
fi
4146
env:
4247
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"react-native": "src/index",
99
"source": "src/index",
1010
"files": [
11+
"src",
1112
"lib",
1213
"react-native.config.js",
1314
"nitrogen",
@@ -88,9 +89,7 @@
8889
"npm": {
8990
"publish": true,
9091
"skipChecks": true,
91-
"publishArgs": [
92-
"--provenance --access public"
93-
]
92+
"publishArgs": ["--provenance --access public"]
9493
},
9594
"github": {
9695
"release": true

0 commit comments

Comments
 (0)