Skip to content

Commit d111fc6

Browse files
committed
chore: update ci
1 parent 99b5241 commit d111fc6

File tree

2 files changed

+30
-12
lines changed

2 files changed

+30
-12
lines changed

.github/workflows/checks.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
checks:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: latest
21+
22+
- run: bun install --frozen-lockfile
23+
- run: bun eslint
24+
# - run: bun test
25+
- run: bun tsc

.github/workflows/publish.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Publish on NPM
1+
name: Publish
22

33
on:
44
push:
55
tags:
6-
- 'js-v*.*.*'
6+
- "*.*.*"
77

88
jobs:
99
publish:
@@ -16,20 +16,13 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- uses: pnpm/action-setup@v4
20-
with:
21-
version: latest
22-
2319
- uses: actions/setup-node@v4
2420
with:
25-
cache: 'pnpm'
2621
node-version: 20
27-
registry-url: 'https://registry.npmjs.com'
28-
cache-dependency-path: 'pnpm-lock.yaml'
22+
registry-url: "https://registry.npmjs.com"
2923

30-
- name: Publish package
31-
env:
24+
- env:
3225
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3326
run: |
34-
pnpm install && pnpm build
27+
npm install && npm run build
3528
npm publish --provenance --access public

0 commit comments

Comments
 (0)