2024-02-01 00:42:55 +00:00
|
|
|
name: Check Misskey JS version
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ develop ]
|
|
|
|
paths:
|
|
|
|
- packages/misskey-js/package.json
|
|
|
|
- package.json
|
2024-10-12 02:52:42 +00:00
|
|
|
- .github/workflows/check-misskey-js-version.yml
|
2024-02-01 00:42:55 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ develop ]
|
|
|
|
paths:
|
|
|
|
- packages/misskey-js/package.json
|
|
|
|
- package.json
|
2024-10-12 02:52:42 +00:00
|
|
|
- .github/workflows/check-misskey-js-version.yml
|
2024-02-01 00:42:55 +00:00
|
|
|
jobs:
|
|
|
|
check-version:
|
|
|
|
# ルートの package.json と packages/misskey-js/package.json のバージョンが一致しているかを確認する
|
|
|
|
name: Check version
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- 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
|