Skip to content

Add: Check Version Scripts #2

Add: Check Version Scripts

Add: Check Version Scripts #2

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