Skip to content

Commit

Permalink
chore: Update Bun and Node.js setup in CI workflow
Browse files Browse the repository at this point in the history
- Update Bun setup to use the latest version
- Add a step to clear the Bun cache
  • Loading branch information
ozhanefemeral committed Jul 25, 2024
1 parent 2c50a3c commit 8e4a5e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/setup-node@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Clear bun cache
run: bun pm cache clean

- name: Install dependencies
run: bun install

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release-ts-codegenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,25 @@ jobs:
- 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
with:
bun-version: latest

- name: Clear bun cache
run: bun pm cache clean
working-directory: ./packages/ts-generator

- name: Install Dependencies
run: bun install
working-directory: ./packages/ts-generator

- 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:
Expand Down

0 comments on commit 8e4a5e5

Please sign in to comment.