Skip to content

Commit ad7172b

Browse files
committed
chore: default pkg manager to bun
1 parent 12e0ed0 commit ad7172b

File tree

6 files changed

+40
-16035
lines changed

6 files changed

+40
-16035
lines changed

.claude/settings.local.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"Bash(npx expo prebuild:*)",
2424
"Bash(npx expo run:*)",
2525
"Bash(git checkout:*)",
26-
"Bash(./gradlew:*)"
26+
"Bash(./gradlew:*)",
27+
"Bash(grep:*)",
28+
"Bash(find:*)"
2729
],
2830
"deny": []
2931
}
Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,55 @@
1-
21
name: publish-package
32

43
on:
54
release:
65
types: [created]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Package version (e.g., 1.2.3) - leave empty to use package.json version'
10+
required: false
11+
type: string
12+
tag:
13+
description: 'NPM tag (latest, beta, next, etc.)'
14+
required: false
15+
default: 'latest'
16+
type: string
717

818
jobs:
919
build:
1020
runs-on: ubuntu-latest
1121
steps:
1222
- uses: actions/checkout@v4
23+
24+
- uses: oven-sh/setup-bun@v2
25+
with:
26+
bun-version: latest
27+
1328
- uses: actions/setup-node@v4
1429
with:
1530
node-version: 20
1631

17-
- run: yarn
18-
- run: yarn build
32+
- run: bun install
33+
34+
- name: Update version if specified
35+
if: ${{ github.event.inputs.version != '' }}
36+
run: |
37+
npm version ${{ github.event.inputs.version }} --no-git-tag-version
38+
echo "Updated package.json to version ${{ github.event.inputs.version }}"
39+
40+
- run: bun run build
1941

2042
- name: Configure npm for publishing
2143
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
2244

23-
- run: yarn publish
45+
- name: Publish with tag
46+
if: ${{ github.event.inputs.tag != '' }}
47+
run: npm publish --tag ${{ github.event.inputs.tag }}
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
51+
- name: Publish (default)
52+
if: ${{ github.event.inputs.tag == '' }}
53+
run: npm publish
2454
env:
2555
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)