Skip to content

Commit

Permalink
Fix separate check changeset status (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
takurinton authored Sep 4, 2023
1 parent 279de20 commit e51bddc
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
17 changes: 17 additions & 0 deletions .github/actions/setup-yarn/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: setup-yarn
description: "Setup yarn"

runs:
using: composite
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install
shell: bash
run: make -f ci.mk install
17 changes: 17 additions & 0 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: need changeset

on:
pull_request:
paths:
- "src/**"
- ".github/workflows/changeset.yaml"

jobs:
changeset:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-yarn
- name: check changesets
run: make -f ci.mk check_changesets
if: github.actor != 'dependabot[bot]' && github.actor != 'FluctMember'
13 changes: 1 addition & 12 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install
run: make -f ci.mk install
- name: check changesets
run: make -f ci.mk check_changesets
if: github.actor != 'dependabot[bot]' && github.actor != 'FluctMember'
- uses: ./.github/actions/setup-yarn
- name: lint
run: make -f ci.mk lint
- name: test
Expand Down

0 comments on commit e51bddc

Please sign in to comment.