Skip to content

Commit 6bc74d8

Browse files
chore: update npm deployment workflow
1 parent 9ce25e6 commit 6bc74d8

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

.github/workflows/npm-deploy.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,13 @@ jobs:
8383
uses: oven-sh/setup-bun@v2
8484

8585
- name: Install dependencies
86-
run: bun install --frozen-lockfile
86+
run: bun install
8787

8888
- name: Build package
8989
run: bun run build
9090

9191
- name: Publish to npm
92-
run: |
93-
# strip “refs/heads/” prefix
94-
BRANCH=${GITHUB_REF#refs/heads/}
95-
if [[ "$BRANCH" == "1.x" ]]; then
96-
echo "Publishing to npm under the 'beta' tag"
97-
bun publish --tag beta
98-
else
99-
echo "Publishing to npm under the 'latest' tag"
100-
bun publish
101-
fi
92+
run: bun publish
10293
env:
10394
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
10495

0 commit comments

Comments
 (0)