Skip to content

Commit

Permalink
feat: add changeset check gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Luzzi committed Jul 25, 2023
1 parent 34abb99 commit 381e244
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/changeset-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Changeset check
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Check
run: yarn changeset:check
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"scripts": {
"changeset:publish": "yarn run build && changeset publish",
"changeset:check": "changeset status --since=main",
"build": "turbo run build",
"build:frontend-production": "turbo run build:production --filter @carrot-kpi/host-frontend",
"build:frontend-staging": "turbo run build:staging --filter @carrot-kpi/host-frontend",
Expand Down

0 comments on commit 381e244

Please sign in to comment.