Skip to content

Commit

Permalink
switch to bun and update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ozhanefemeral committed Jul 24, 2024
1 parent ebe9ed1 commit 60dbae1
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 4,476 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
run: bun install

- name: Lint
run: bun run lint

- name: Build
run: bun run build

- name: Test
run: bun run test
21 changes: 0 additions & 21 deletions .github/workflows/main.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/publish.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/release-ts-codegenerator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release ts-codegenerator

on:
push:
branches:
- main
paths:
- "packages/ts-generator/**"

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install Dependencies
run: bun install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects your changesets to be in the root packages/ts-generator/.changeset
cwd: ./packages/ts-generator
publish: bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 60dbae1

Please sign in to comment.