Skip to content

Commit 3c30c21

Browse files
committed
Add version check workflow
1 parent 02ac4e0 commit 3c30c21

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Version Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- bin/**/*
9+
- src/**/*
10+
- .node-version
11+
- package-lock.json
12+
- package.json
13+
- tsconfig.base.json
14+
- tsconfig.eslint.json
15+
- tsconfig.json
16+
17+
permissions:
18+
checks: write
19+
contents: read
20+
pull-requests: write
21+
22+
jobs:
23+
check-version:
24+
name: Version Check
25+
runs-on: ubuntu-latest
26+
27+
if: ${{ startsWith(github.head_ref, 'dependabot/') == false }}
28+
29+
steps:
30+
- name: Checkout
31+
id: checkout
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-tags: true
35+
fetch-depth: 0
36+
37+
- name: Check Version
38+
id: check-version
39+
uses: issue-ops/semver@v2
40+
with:
41+
check-only: true
42+
comment: true
43+
manifest-path: package.json
44+
workspace: ${{ github.workspace }}

0 commit comments

Comments
 (0)