2024-02-02 16:20:25 +09:00
|
|
|
name: Check CherryPick JS version
|
2024-02-01 09:42:55 +09:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ develop ]
|
|
|
|
paths:
|
2024-02-02 16:20:25 +09:00
|
|
|
- packages/cherrypick-js/package.json
|
2024-02-01 09:42:55 +09:00
|
|
|
- package.json
|
|
|
|
pull_request:
|
|
|
|
branches: [ develop ]
|
|
|
|
paths:
|
2024-02-02 16:20:25 +09:00
|
|
|
- packages/cherrypick-js/package.json
|
2024-02-01 09:42:55 +09:00
|
|
|
- package.json
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-version:
|
2024-02-02 16:20:25 +09:00
|
|
|
# ルートの package.json と packages/cherrypick-js/package.json のバージョンが一致しているかを確認する
|
2024-02-01 09:42:55 +09:00
|
|
|
name: Check version
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- name: Check version
|
|
|
|
run: |
|
2024-02-02 16:20:25 +09:00
|
|
|
if [ "$(jq -r '.version' package.json)" != "$(jq -r '.version' packages/cherrypick-js/package.json)" ]; then
|
2024-02-01 09:42:55 +09:00
|
|
|
echo "Version mismatch!"
|
|
|
|
exit 1
|
|
|
|
fi
|