Skip to content

Commit 008fd6f

Browse files
authored
chore(NODE-5336): finalize nightly release time (#3705)
1 parent 9107f91 commit 008fd6f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/scripts/nightly.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/release-nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
on:
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

88
name: release-nightly
99

@@ -25,6 +25,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)