Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Added changeset.yml pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexShukel committed Jan 22, 2024
1 parent 4d92a92 commit 4662fb3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Changeset existence
on:
pull_request:
branches: [main]
types: [labeled, opened, synchronize, reopened]
workflow_dispatch:
jobs:
changeset:
name: Check for changeset existence
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'chore') }}

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install pnpm 8.x.x
uses: pnpm/[email protected]
with:
version: 8.x.x

- name: Install pnpm dependencies (with cache)
uses: covbot/pnpm-install-with-cache@v1

- name: Danger
run: pnpm danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4662fb3

Please sign in to comment.