Skip to content

Commit 1349632

Browse files
chore: update npm deployment workflow
1 parent 0357f4c commit 1349632

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/npm-deploy.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- 1.x
7-
- 0.x
87
workflow_dispatch:
98

109
jobs:
@@ -84,22 +83,13 @@ jobs:
8483
uses: oven-sh/setup-bun@v2
8584

8685
- name: Install dependencies
87-
run: bun install --frozen-lockfile
86+
run: bun install
8887

8988
- name: Build package
9089
run: bun run build
9190

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

0 commit comments

Comments
 (0)