Skip to content

Commit a4b1a78

Browse files
authored
Merge pull request #96 from BryanBotDev/dev
BryanBot v2.0.0
2 parents c9e283b + 6d10782 commit a4b1a78

File tree

8 files changed

+202
-211
lines changed

8 files changed

+202
-211
lines changed

.github/workflows/nodejs.yml

Lines changed: 64 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -3,82 +3,73 @@
33
name: Node.js CI
44

55
on:
6-
push:
7-
paths-ignore:
8-
- 'README.md'
9-
- '.github/**'
10-
- '.dockerignore'
11-
- 'docker-compose.yml'
12-
- 'Dockerfile'
13-
branches:
14-
- main
15-
pull_request:
16-
paths-ignore:
17-
- 'README.md'
18-
- '.github/**'
19-
- '.dockerignore'
20-
- 'docker-compose.yml'
21-
- 'Dockerfile'
22-
branches:
23-
- main
24-
schedule:
25-
# execute once every monday
26-
- cron: "0 0 * * MON"
6+
push:
7+
paths-ignore:
8+
- "README.md"
9+
- ".github/**"
10+
- ".dockerignore"
11+
- "docker-compose.yml"
12+
- "Dockerfile"
13+
branches:
14+
- dev
15+
schedule:
16+
# execute once every monday
17+
- cron: "0 0 * * 1"
2718

2819
jobs:
29-
build:
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@v2
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
3425

35-
- name: Install Node v16
36-
uses: actions/setup-node@v2
37-
with:
38-
node-version: 16
39-
40-
- uses: pnpm/action-setup@v2
41-
name: Install pnpm
42-
id: pnpm-install
43-
with:
44-
version: 7
45-
run_install: false
26+
- name: Install Node v22
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
4630

47-
- name: Get pnpm store directory
48-
id: pnpm-cache
49-
shell: bash
50-
run: |
51-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31+
- uses: pnpm/action-setup@v4
32+
name: Install pnpm
33+
id: pnpm-install
34+
with:
35+
version: 10
36+
run_install: false
5237

53-
- uses: actions/cache@v3
54-
name: Setup pnpm cache
55-
with:
56-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
57-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
58-
restore-keys: |
59-
${{ runner.os }}-pnpm-store-
38+
- name: Get pnpm store directory
39+
id: pnpm-cache
40+
shell: bash
41+
run: |
42+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
6043
61-
- name: Install dependencies
62-
run: pnpm install
63-
analyze:
64-
name: Analyze
65-
runs-on: ubuntu-latest
66-
permissions:
67-
actions: read
68-
contents: read
69-
security-events: write
70-
strategy:
71-
fail-fast: false
72-
matrix:
73-
language: ["javascript"]
74-
steps:
75-
- name: Checkout repository
76-
uses: actions/checkout@v2
77-
- name: Initialize CodeQL
78-
uses: github/codeql-action/init@v1
79-
with:
80-
languages: ${{ matrix.language }}
81-
- name: Autobuild
82-
uses: github/codeql-action/autobuild@v1
83-
- name: Perform CodeQL Analysis
84-
uses: github/codeql-action/analyze@v1
44+
- uses: actions/cache@v4
45+
name: Setup pnpm cache
46+
with:
47+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
48+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49+
restore-keys: |
50+
${{ runner.os }}-pnpm-store-
51+
52+
- name: Install dependencies
53+
run: pnpm install
54+
analyze:
55+
name: Analyze
56+
runs-on: ubuntu-latest
57+
permissions:
58+
actions: read
59+
contents: read
60+
security-events: write
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
language: ["javascript"]
65+
steps:
66+
- name: Checkout repository
67+
uses: actions/checkout@v4
68+
- name: Initialize CodeQL
69+
uses: github/codeql-action/init@v3
70+
with:
71+
languages: ${{ matrix.language }}
72+
- name: Autobuild
73+
uses: github/codeql-action/autobuild@v3
74+
- name: Perform CodeQL Analysis
75+
uses: github/codeql-action/analyze@v3

.github/workflows/pre-release.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,27 @@ jobs:
1010
name: Public Release
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v4
1414

15-
# Set Variables
1615
- name: Set variables
1716
id: vars
1817
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
1918

20-
# Zip up necessary files
2119
- name: Archive Source code
22-
run: zip -r BryanBot-v${{ steps.vars.outputs.version }}.zip * -x Dockerfile docker-compose.yml Dockerignore
20+
run: zip -r BryanBot-v${{ steps.vars.outputs.version }}.zip * -x Dockerfile docker-compose.yml
2321

24-
# Fetch the pterodactyl egg
25-
- name: Receive Pterodactyl Egg
26-
run: wget -O pterodactyl-egg.json https://cdn.zorino.in/egg-bryanbot-bot.json
27-
28-
# Generate checksums for all files and log them to the appropriate file
2922
- name: Generate Checksums
3023
run: |
31-
md5sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json Dockerfile docker-compose.yml .dockerignore > md5-checksums.txt
32-
sha256sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json Dockerfile docker-compose.yml .dockerignore > sha256-checksums.txt
33-
sha512sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json Dockerfile docker-compose.yml .dockerignore > sha512-checksums.txt
34-
# Release Public Build
35-
- uses: "marvinpinto/action-automatic-releases@latest"
24+
md5sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json > md5-checksums.txt
25+
sha256sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json > sha256-checksums.txt
26+
sha512sum BryanBot-v${{ steps.vars.outputs.version }}.zip pterodactyl-egg.json > sha512-checksums.txt
27+
28+
- uses: "softprops/action-gh-release@v2"
3629
with:
37-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
30+
name: "BryanBot v${{ steps.vars.outputs.version }}"
3831
prerelease: false
39-
title: "BryanBot v${{ steps.vars.outputs.version }}"
32+
draft: true
4033
files: |
4134
BryanBot-*.zip
4235
pterodactyl-egg.json
43-
Dockerfile
44-
docker-compose.yml
4536
*-checksums.txt

.github/workflows/test.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"better-sqlite3": "^11.8.1",
3333
"chalk": "^5.4.1",
3434
"console-stamp": "^3.1.2",
35-
"discord.js": "^14.17.3",
35+
"discord.js": "^14.18.0",
3636
"fast-folder-size": "^2.4.0",
3737
"ms": "^2.1.3",
3838
"yaml": "^2.7.0"

0 commit comments

Comments
 (0)