Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Commit 2593c46

Browse files
committed
ci: update release CI
1 parent 569b06b commit 2593c46

2 files changed

Lines changed: 17 additions & 52 deletions

File tree

.github/workflows/npm-publish-github-packages.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Publish to NPM
22

33
on:
44
release:
@@ -9,8 +9,9 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
publish-npm:
13-
name: Publish To NPM
12+
publish:
13+
name: Publish package
14+
if: github.event.release.prerelease == false
1415
runs-on: ubuntu-latest
1516

1617
steps:
@@ -22,19 +23,22 @@ jobs:
2223
with:
2324
bun-version: latest
2425

26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
registry-url: https://registry.npmjs.org
31+
2532
- name: Install dependencies
2633
run: bun install --frozen-lockfile
2734

28-
- name: Build package
29-
run: bun run build
35+
- name: Test types
36+
run: bun run test:types
3037

31-
- name: Configure NPM authentication
32-
run: |
33-
printf '%s\n' "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
34-
env:
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
- name: Build
39+
run: bun run build
3640

37-
- name: Publish package
38-
run: bun publish --access public
41+
- name: Publish on npm
42+
run: npm publish --access public
3943
env:
40-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)