Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Node.js CI

on: [push]
on:
push:
branches:
- main
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 16
cache: npm
- uses: mansona/npm-lockfile-version@v1
- run: npm i -g npm@8
- run: npm ci
- run: npm run lint
- run: npm test
node-version: 24
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm test
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
const version = await keyv.get('version');

if (!version) {
const channels = client.channels.cache.filter((channel) => channel.name === 'core-meta');
const channels = client.channels.cache.filter((channel) => channel.name.startsWith('core-meta'));

channels.forEach((channel) => {
channel.send('Oh no! I\'ve forgotten everything :see_no_evil: please tell me what the next release is with `/release-next <version> <date>`');
Expand Down Expand Up @@ -93,4 +93,4 @@

app.get('/', (req, res) => res.send('Hello World!'));

app.listen(process.env.PORT, () => console.log(`Example app listening at http://localhost:${process.env.PORT}`));

Check warning on line 96 in app.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
4 changes: 2 additions & 2 deletions cron/daily-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function createMessage({ dateString, waitingFor }) {
const hoursUntilRelease = lastDayOfReleaseWeek.diff(today, 'hours');

if (isReleaseInXDays(11, hoursUntilRelease)) {
return `Release week starts next week on ${moment(dateString).format('YYYY-MM-DD')} are we all prepared? :lts:`;
return `Release week starts next week on ${moment.utc(dateString).format('YYYY-MM-DD')} are we all prepared? :lts:`;
}

if (isReleaseInXDays(4, hoursUntilRelease)) {
Expand Down Expand Up @@ -57,7 +57,7 @@ module.exports = {
cron: '00 10 * * *', // once a day at 9:30 UTC
job(client, keyv) {
return async () => {
const channels = client.channels.cache.filter((ch) => ch.name === 'core-meta');
const channels = client.channels.cache.filter((ch) => ch.name.startsWith('core-meta'));

const dateString = await keyv.get('date');

Expand Down
Loading
Loading