Skip to content

Commit d571d71

Browse files
committed
update ci and move to bun
1 parent bf07a19 commit d571d71

File tree

6 files changed

+83
-5904
lines changed

6 files changed

+83
-5904
lines changed

.github/workflows/release.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v3
15+
16+
- name: Set env
17+
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: 18
23+
24+
- name: Set package version
25+
run: echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json
26+
27+
- name: Setup Bun
28+
uses: oven-sh/setup-bun@v1
29+
with:
30+
bun-version: latest
31+
32+
- name: Install dependencies
33+
run: bun install
34+
35+
- name: Build
36+
run: bun run build
37+
38+
- name: Add npm token
39+
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
40+
41+
- name: Publish release candidate
42+
if: "github.event.release.prerelease"
43+
run: npm publish --access public --tag=canary
44+
45+
- name: Publish
46+
if: "!github.event.release.prerelease"
47+
run: npm publish --access public

.github/workflows/tests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
concurrency: test
12+
13+
name: Tests
14+
steps:
15+
- name: Setup repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v1
20+
with:
21+
bun-version: latest
22+
23+
- name: Install Dependencies
24+
run: bun install
25+
26+
- name: Run Lint
27+
run: bun run lint
28+
29+
- name: Run Build
30+
run: bun run build

bun.lockb

177 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@upstash/react-databrowser",
3-
"version": "0.3.20",
3+
"version": "0.0.0",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"license": "MIT",
@@ -9,13 +9,12 @@
99
"access": "public"
1010
},
1111
"bugs": {
12-
"url": "https://github.com/upstash/react-ui/issues"
12+
"url": "https://github.com/upstash/redis-databrowser/issues"
1313
},
14-
"homepage": "https://github.com/upstash/react-ui#readme",
14+
"homepage": "https://github.com/upstash/redis-databrowser",
1515
"files": [
1616
"./dist/**"
1717
],
18-
"author": "Oguzhan Olguncu <oguzhan@upstash.com>",
1918
"scripts": {
2019
"build": "tsup",
2120
"dev": "vite",

0 commit comments

Comments
 (0)