Skip to content

Commit

Permalink
Merge pull request #14 from joaopaulomoraes/feat/use-bun
Browse files Browse the repository at this point in the history
Add bun
  • Loading branch information
joaopaulomoraes authored Sep 22, 2023
2 parents f0505ab + 3ade8d3 commit 1a64c82
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 12,350 deletions.
11 changes: 0 additions & 11 deletions .babelrc

This file was deleted.

15 changes: 4 additions & 11 deletions .github/workflows/publish_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- uses: oven-sh/setup-bun@v1

- run: pnpm install
- run: pnpm run build
- run: bun install
- run: bun run build

- name: Publish to NPM
run: pnpm publish --access public --no-git-checks
run: bunx pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 6 additions & 12 deletions .github/workflows/validate_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "pnpm"
- uses: oven-sh/setup-bun@v1

- name: Install
run: pnpm install
run: bun install

- name: Linting
run: pnpm run lint
run: bun run lint

- name: Typecheck
run: pnpm run typecheck
run: bun run typecheck

- name: Test
run: pnpm run test:ci
run: bun run test:ci

- name: Build
run: pnpm run build
run: bun run build
Binary file added bun.lockb
Binary file not shown.
9 changes: 0 additions & 9 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 1a64c82

Please sign in to comment.