Skip to content

Commit

Permalink
chore: use bun
Browse files Browse the repository at this point in the history
  • Loading branch information
egilsster committed Sep 10, 2023
1 parent 1afb503 commit be2f742
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: oven-sh/setup-bun@v1
with:
version: 8
- uses: actions/setup-node@v3
bun-version: latest
- run: bun install
- run: bun lint
- run: bun format:check
- run: bun types:check
- run: bun run build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v2
with:
node-version: 18
cache: pnpm
- run: pnpm install
- run: pnpm lint
- run: pnpm format:check
- run: pnpm types:check
- run: pnpm build
- name: deploy to github pages
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
name: github-pages
path: ./dist

deploy:
if: github.ref == 'refs/heads/main'
needs: validate
runs-on: ubuntu-latest
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
Binary file added bun.lockb
Binary file not shown.

0 comments on commit be2f742

Please sign in to comment.