Skip to content

Commit

Permalink
ci: Optimize release workflow and add concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
ozhanefemeral committed Jul 26, 2024
1 parent 45e5da7 commit f4b2fd0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release-ts-codegenerator.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
name: Release ts-codegenerator
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

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
with:
bun-version: latest

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
run: bun install
Expand All @@ -26,7 +33,6 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
# The package is now at the root level, so we don't need to specify a subdirectory
publish: bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f4b2fd0

Please sign in to comment.