Add: Check Version Scripts #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Version | |
on: | |
push: | |
branches: | |
- master | |
- release/** | |
pull_request: | |
branches: | |
- develop # [TODO] 後で削除 | |
- release/** | |
- master | |
jobs: | |
check-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: | | |
npm install | |
npm install --no-save toml | |
npm install --no-save @octokit/rest | |
- name: Extract Tauri version | |
id: tauri-version | |
run: node .github/scripts/extractVersion.cjs | |
- name: Verify version on GitHub | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ steps.tauri-version.outputs.version }} | |
run: node .github/scripts/checkVersion.cjs |