Skip to content

Commit

Permalink
chore(ci): add changeset step to ci (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Jan 31, 2023
1 parent 604b417 commit adc8b99
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,45 @@ jobs:
- run: pnpm turbo run lint
- run: pnpm manypkg check

check-changeset:
runs-on: ubuntu-latest
name: Check Changeset
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install root dependencies
run: pnpm --filter root install

# This will use the `changedFilePatterns` to check that a changeset has been added
# if any matched file has been changed
- run: pnpm changeset status --since origin/next

prettier:
runs-on: ubuntu-latest
name: Run Prettier
Expand Down

0 comments on commit adc8b99

Please sign in to comment.