Skip to content

Commit 1ed824d

Browse files
authored
Merge pull request #504 from api3dao/check-for-changeset
Add a workflow to check for changesets on pull requests
2 parents 0d87b85 + d302a93 commit 1ed824d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/check-changeset.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check for Changeset
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
require-changeset:
10+
runs-on: ubuntu-latest
11+
if: github.actor != 'renovate[bot]' && github.actor != 'dependabot[bot]'
12+
steps:
13+
- name: Clone @api3/contracts
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
21+
- name: Setup Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20.17.0'
25+
cache: 'pnpm'
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Check for changeset
31+
run: pnpm changeset status --since=origin/main

0 commit comments

Comments
 (0)