File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ class NightlyVersion {
4343 console . log ( 'Generating new nightly version' ) ;
4444 const currentCommit = await NightlyVersion . currentCommit ( ) ;
4545 const today = new Date ( ) ;
46- const year = `${ today . getFullYear ( ) } ` ;
47- const month = `${ today . getMonth ( ) } ` . padStart ( 2 , '0' ) ;
46+ const year = `${ today . getUTCFullYear ( ) } ` ;
47+ const month = `${ today . getUTCMonth ( ) + 1 } ` . padStart ( 2 , '0' ) ;
4848 const day = `${ today . getUTCDate ( ) } ` . padStart ( 2 , '0' ) ;
4949 const yyyymmdd = `${ year } ${ month } ${ day } ` ;
5050
Original file line number Diff line number Diff line change 11on :
22 schedule :
33 # Timezone is UTC
4- # https://crontab.guru/#0_20_ *_*_1-5
5- # At 20 :00 on every day-of-week from Monday through Friday .
6- - cron : ' 35 20 * * 1-5 '
4+ # https://crontab.guru/#0_0_ *_*_*
5+ # At 00 :00 every day.
6+ - cron : ' 0 0 * * * '
77
88name : release-nightly
99
2525 - run : npm run build:nightly
2626 continue-on-error : true
2727 - if : ${{ success() }}
28- run : npm publish --dry-run -- provenance --tag=nightly
28+ run : npm publish --provenance --tag=nightly
2929 env :
3030 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments