forkey/.forgejo/workflows/check-misskey-js-version.yml
sugar 41a9904932
All checks were successful
Test (production install and build) / production (22.x) (pull_request) Successful in 2m21s
avoid cloning entire repo for actions/checkout
`fetch-depth: 0` is saying to fetch all commits, which we don't really
need test for testing a single commit
2025-01-19 19:43:34 +01:00

30 lines
772 B
YAML

name: Check Misskey JS version
on:
push:
branches:
- main
paths:
- packages/misskey-js/package.json
- package.json
pull_request:
paths:
- packages/misskey-js/package.json
- package.json
jobs:
check-version:
# ルートの package.json と packages/misskey-js/package.json のバージョンが一致しているかを確認する
name: Check version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Check version
run: |
if [ "$(jq -r '.version' package.json)" != "$(jq -r '.version' packages/misskey-js/package.json)" ]; then
echo "Version mismatch!"
exit 1
fi