-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 957 Bytes
/
changes.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
36
37
38
39
40
name: Check Changes
on:
pull_request:
branches: ["main"]
permissions:
pull-requests: write
jobs:
changes:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 ## Needed for changelog
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: pnpm/action-setup@v2
name: Install pnpm
- run: pnpm install
name: Install dependencies
- run: pnpm build
name: Build
- run: node ./packages/github-pr-commenter/cmd/cli.mjs verify
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
name: Create/update comment
if: ${{ !startsWith(github.head_ref, 'publish/') }}
- run: node ./packages/chronus/cmd/cli.mjs verify
name: Verify changes
if: ${{ !startsWith(github.head_ref, 'publish/') }}