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 {
43
43
console . log ( 'Generating new nightly version' ) ;
44
44
const currentCommit = await NightlyVersion . currentCommit ( ) ;
45
45
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' ) ;
48
48
const day = `${ today . getUTCDate ( ) } ` . padStart ( 2 , '0' ) ;
49
49
const yyyymmdd = `${ year } ${ month } ${ day } ` ;
50
50
Original file line number Diff line number Diff line change 1
1
on :
2
2
schedule :
3
3
# 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 * * * '
7
7
8
8
name : release-nightly
9
9
25
25
- run : npm run build:nightly
26
26
continue-on-error : true
27
27
- if : ${{ success() }}
28
- run : npm publish --dry-run -- provenance --tag=nightly
28
+ run : npm publish --provenance --tag=nightly
29
29
env :
30
30
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments