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}`;