mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-24 10:43:58 +09:00
30 lines
890 B
YAML
30 lines
890 B
YAML
name: Check CherryPick JS version
|
|
|
|
on:
|
|
push:
|
|
branches: [ develop ]
|
|
paths:
|
|
- packages/cherrypick-js/package.json
|
|
- package.json
|
|
- .github/workflows/check-cherrypick-js-version.yml
|
|
pull_request:
|
|
branches: [ develop ]
|
|
paths:
|
|
- packages/cherrypick-js/package.json
|
|
- package.json
|
|
- .github/workflows/check-cherrypick-js-version.yml
|
|
jobs:
|
|
check-version:
|
|
# ルートの package.json と packages/cherrypick-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/cherrypick-js/package.json)" ]; then
|
|
echo "Version mismatch!"
|
|
exit 1
|
|
fi
|