Skip to content

Commit

Permalink
ci: use Bun for install/build steps in publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 8, 2024
1 parent 20e97cb commit 00f5b46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.2

- name: Install dependencies
run: npm install --force
run: bun install

- name: Build library
run: npm run prepack
- name: Build package
run: bun run build

- name: Publish to NPM
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"index:components": "bun scripts/index-components.ts",
"prepack": "tsc -p tsconfig.build.json",
"build": "bunx --bun tsc -p tsconfig.build.json",
"format": "bunx --bun prettier --write ."
},
"dependencies": {
Expand Down

0 comments on commit 00f5b46

Please sign in to comment.