-
Notifications
You must be signed in to change notification settings - Fork 2.6k
53 lines (45 loc) · 1.84 KB
/
beachball-check.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
41
42
43
44
45
46
47
48
49
50
51
52
53
# This workflow will do a clean install of node dependencies at the root and check that a beachball change file has been committed.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Beachball Check
on:
pull_request:
branches:
- dev
concurrency:
group: beachball-${{github.ref}}
cancel-in-progress: true
permissions:
contents: read
jobs:
beachball-check:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for dorny/paths-filter to read pull requests
if: github.actor != 'dependabot[bot]' && github.head_ref != 'release-staging' && github.head_ref != '3p-release-staging' && !contains(github.head_ref, 'post-release')
runs-on: ubuntu-latest
env:
BEACHBALL: 1
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
# Will return true if any file is not markdown and any file is in /lib
filters: |
lib:
- 'lib/**/**.!(md)'
- 'extensions/msal-node-extensions/**/**.!(md)'
- uses: actions/checkout@v4
if: ${{ steps.filter.outputs.lib == 'true' }}
with:
fetch-depth: 0
- name: Use Node.js
if: ${{ steps.filter.outputs.lib == 'true' }}
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install beachball
if: ${{ steps.filter.outputs.lib == 'true' }}
run: npm ci --workspaces=false
- name: Run Beachball Check command
if: ${{ steps.filter.outputs.lib == 'true' }}
run: npm run beachball:check