From 3b6bd195167b93020ee0f7bd4756a02bfa70452f Mon Sep 17 00:00:00 2001 From: "Nanashi." Date: Wed, 6 Nov 2024 17:55:23 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E5=90=8D=E3=83=91=E3=82=BF=E3=83=BC=E3=83=B3=E3=81=AEmonth?= =?UTF-8?q?=E3=81=8C1=E6=9C=88=E3=82=BA=E3=83=AC=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3=20(#2343)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_preview_pages.yml | 7 ++++--- src/store/utility.ts | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_preview_pages.yml b/.github/workflows/build_preview_pages.yml index f2e9a049af..d261a8c5c8 100644 --- a/.github/workflows/build_preview_pages.yml +++ b/.github/workflows/build_preview_pages.yml @@ -11,7 +11,8 @@ on: pull_request: jobs: - update_pages: + # このJobの名前を変更したときは、voicevox/preview-pages側のscripts/collect.tsも変更すること。 + build_preview_pages: runs-on: ubuntu-latest steps: - name: Checkout @@ -22,8 +23,8 @@ jobs: - name: Build run: | - npm run storybook:build -- --preview-url ./ --output-dir dist_preview/storybook - npm run browser:build -- --base ./ --outDir dist_preview/editor + npm run storybook:build -- --output-dir $(pwd)/dist_preview/storybook + npm run browser:build -- --base ./ --outDir $(pwd)/dist_preview/editor - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/src/store/utility.ts b/src/store/utility.ts index 3989a44914..c27bbe290f 100644 --- a/src/store/utility.ts +++ b/src/store/utility.ts @@ -155,7 +155,8 @@ const DEFAULT_SONG_AUDIO_FILE_NAME_VARIABLES = { export function currentDateString(): string { const currentDate = new Date(); const year = currentDate.getFullYear(); - const month = currentDate.getMonth().toString().padStart(2, "0"); + // NOTE: getMonth()は0から始まるので1を足す + const month = (currentDate.getMonth() + 1).toString().padStart(2, "0"); const date = currentDate.getDate().toString().padStart(2, "0"); return `${year}${month}${date}`;