-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (30 loc) · 1023 Bytes
/
changeset.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm 7.x.x
uses: pnpm/[email protected]
with:
version: 7.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 }}