Skip to content

Commit

Permalink
ci(.github): add changesets ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
oktaysenkan committed Oct 16, 2024
1 parent f3f793a commit a267936
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Clean
run: yarn clean

- name: Build all packages and apps
run: yarn build
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
branches: [main]

jobs:
release:
if: github.repository == 'oktaysenkan/monicon'

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Clean
run: yarn clean

- name: Build all packages and apps
run: yarn build

- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: yarn release
version: yarn version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a267936

Please sign in to comment.