From 2da2bed09bc18cb2815df6f136394398934387e4 Mon Sep 17 00:00:00 2001 From: Hiroshiba Date: Sat, 9 Nov 2024 18:09:07 +0900 Subject: [PATCH] =?UTF-8?q?Add:=20=E8=BF=BD=E5=8A=A0=E3=81=AE=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E6=83=85=E5=A0=B1=E3=82=92?= =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E3=83=97=E3=83=AD=E3=82=BB=E3=82=B9?= =?UTF-8?q?=E3=81=AB=E7=B5=B1=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_preview_pages.yml | 6 +++++- src/components/Menu/MenuBar/MenuBar.vue | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_preview_pages.yml b/.github/workflows/build_preview_pages.yml index 09dd8cafd2..fb1068e4ac 100644 --- a/.github/workflows/build_preview_pages.yml +++ b/.github/workflows/build_preview_pages.yml @@ -23,7 +23,7 @@ jobs: - name: Build run: | - npm run storybook:build -- --output-dir $(pwd)/dist_preview/storybook + # 追加のバージョン情報 if [ -n "${{ github.event.pull_request.head.sha }}" ]; then LOCATION="PR#${{ github.event.pull_request.number }}" SHORT_SHA=$(cut -c 1-7 <<< "${{ github.event.pull_request.head.sha }}") @@ -32,6 +32,10 @@ jobs: SHORT_SHA=$(cut -c 1-7 <<< "${{ github.sha }}") fi + # Storybookのビルド + npm run storybook:build -- --output-dir $(pwd)/dist_preview/storybook + + # ブラウザ版エディタのビルド VITE_EXTRA_VERSION_INFO="${LOCATION} @ ${SHORT_SHA}" \ npm run browser:build -- --base ./ --outDir $(pwd)/dist_preview/editor diff --git a/src/components/Menu/MenuBar/MenuBar.vue b/src/components/Menu/MenuBar/MenuBar.vue index da9e521270..1ad3cdba56 100644 --- a/src/components/Menu/MenuBar/MenuBar.vue +++ b/src/components/Menu/MenuBar/MenuBar.vue @@ -53,6 +53,7 @@ const store = useStore(); const { registerHotkeyWithCleanup } = useHotkeyManager(); const currentVersion = ref(""); +/** 追加のバージョン情報。コミットハッシュなどを書ける。 */ const extraVersionInfo = import.meta.env.VITE_EXTRA_VERSION_INFO; const audioKeys = computed(() => store.state.audioKeys);