Skip to content

Commit 78b42df

Browse files
committed
chore: github actions now use bun
1 parent 48c7c52 commit 78b42df

File tree

3 files changed

+54
-59
lines changed

3 files changed

+54
-59
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,14 @@ jobs:
1111
release:
1212
name: Release
1313
runs-on: ubuntu-latest
14+
permissions: write-all
1415
steps:
1516
- name: Checkout Repo
1617
uses: actions/checkout@v3
1718

18-
- name: Setup pnpm
19-
uses: pnpm/[email protected]
19+
- uses: oven-sh/setup-bun@v1
2020
with:
21-
version: 8
22-
23-
- name: Setup Node.js
24-
uses: actions/setup-node@v3
25-
with:
26-
node-version-file: '.nvmrc'
27-
cache: 'pnpm'
28-
registry-url: https://npm.pkg.github.com/
21+
bun-version: latest
2922

3023
- name: Creating .npmrc
3124
run: |
@@ -37,13 +30,13 @@ jobs:
3730

3831
- name: Install dependencies
3932
shell: bash
40-
run: pnpm install --frozen-lockfile
33+
run: bun install
4134

4235
- name: Create Release Pull Request or Publish to npm
4336
id: changesets
4437
uses: changesets/action@v1
4538
with:
46-
publish: pnpm release
39+
publish: bun run release
4740
env:
4841
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4942
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

bun.lockb

1.9 KB
Binary file not shown.

package.json

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,51 @@
11
{
2-
"name": "react-router-typesafe",
3-
"version": "1.2.0",
4-
"description": "type safe patches of react-router-dom",
5-
"main": "./dist/index.js",
6-
"module": "./dist/index.mjs",
7-
"types": "./dist/index.d.ts",
8-
"exports": {
9-
".": {
10-
"require": "./dist/index.js",
11-
"import": "./dist/index.mjs",
12-
"types": "./dist/index.d.ts"
13-
}
14-
},
15-
"files": [
16-
"dist"
17-
],
18-
"scripts": {
19-
"build": "tsup",
20-
"release": "pnpm build && changeset publish"
21-
},
22-
"keywords": [
23-
"react",
24-
"react-router",
25-
"react-router-dom",
26-
"remix",
27-
"remix-router"
28-
],
29-
"author": "fredericoo",
30-
"license": "ISC",
31-
"peerDependencies": {
32-
"react": ">= 17",
33-
"react-router-dom": ">= 6.4.0",
34-
"typescript": ">= 4.9"
35-
},
36-
"devDependencies": {
37-
"@changesets/cli": "^2.26.2",
38-
"@happy-dom/global-registrator": "^11.0.6",
39-
"@testing-library/react": "^14.0.0",
40-
"bun-types": "^1.0.1",
41-
"eslint": "^8.45.0",
42-
"expect-type": "^0.16.0",
43-
"prettier": "^3.0.0",
44-
"tsup": "^7.1.0",
45-
"typescript": "^5.1.6",
46-
"happy-dom": "^11.0.6"
47-
},
48-
"dependencies": {}
2+
"name": "react-router-typesafe",
3+
"version": "1.2.0",
4+
"description": "type safe patches of react-router-dom",
5+
"main": "./dist/index.js",
6+
"module": "./dist/index.mjs",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"require": "./dist/index.js",
11+
"import": "./dist/index.mjs",
12+
"types": "./dist/index.d.ts"
13+
}
14+
},
15+
"files": [
16+
"dist"
17+
],
18+
"scripts": {
19+
"build": "tsup",
20+
"release": "bun run build && changeset publish"
21+
},
22+
"keywords": [
23+
"react",
24+
"react-router",
25+
"react-router-dom",
26+
"remix",
27+
"remix-router"
28+
],
29+
"author": "fredericoo",
30+
"license": "ISC",
31+
"peerDependencies": {
32+
"react": ">= 17",
33+
"react-router-dom": ">= 6.4.0",
34+
"typescript": ">= 4.9"
35+
},
36+
"devDependencies": {
37+
"@changesets/cli": "^2.26.2",
38+
"@happy-dom/global-registrator": "^11.0.6",
39+
"@testing-library/react": "^14.0.0",
40+
"bun-types": "^1.0.1",
41+
"eslint": "^8.45.0",
42+
"expect-type": "^0.16.0",
43+
"happy-dom": "^11.0.6",
44+
"prettier": "^3.0.0",
45+
"react": "^18.2.0",
46+
"react-router-dom": "^6.16.0",
47+
"tsup": "^7.1.0",
48+
"typescript": "^5.1.6"
49+
},
50+
"dependencies": {}
4951
}

0 commit comments

Comments
 (0)