Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ecd37584a0 | ||
|
|
5485b83a79 | ||
|
|
fdaa30af1a | ||
|
|
94bb33308a | ||
|
|
a5b17dfd2a |
No files matched your search
@@ -1,4 +1,4 @@
|
||||
name: Release and Deploy Build
|
||||
name: CD
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -6,19 +6,25 @@ on:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
# Never run two releases at once: both would publish the same commit under different versions.
|
||||
concurrency:
|
||||
group: release
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- name: Use Node.js 24.17.0
|
||||
uses: actions/setup-node@v6
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
with:
|
||||
node-version: '24.17.0'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
@@ -27,6 +33,9 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Checks
|
||||
run: npm run check
|
||||
|
||||
- name: Set Release Version
|
||||
run: npm run version:place
|
||||
env:
|
||||
@@ -41,6 +50,9 @@ jobs:
|
||||
- name: Run Build
|
||||
run: npm run build
|
||||
|
||||
# npm trusted publishing (OIDC) does not support Gitea runners, so this uses npm's
|
||||
# documented fallback: a granular access token scoped to this package, with
|
||||
# bypass 2FA and a short expiry.
|
||||
- name: Publish Library
|
||||
run: npm publish --access public
|
||||
env:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Build Validation
|
||||
name: CI
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -6,10 +6,9 @@ on:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -23,8 +22,62 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Checks
|
||||
run: npm run check
|
||||
- name: Check Version
|
||||
run: npm run version:check
|
||||
|
||||
- name: Check Formatting
|
||||
run: npm run format:check
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js 24.17.0
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24.17.0'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Lint
|
||||
run: npm run lint
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js 24.17.0
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24.17.0'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Type Check
|
||||
run: npm run typecheck
|
||||
|
||||
test-and-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js 24.17.0
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24.17.0'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Tests
|
||||
run: npm test -- --runInBand
|
||||
|
||||
- name: Run Build
|
||||
run: npm run build
|
||||
Generated
+1812
-1957
File diff suppressed because it is too large.
Load diff
+14
-12
@@ -67,29 +67,29 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/opus": "^0.10.0",
|
||||
"@discordjs/opus": "^0.11.0",
|
||||
"@jest/globals": "^30.4.1",
|
||||
"@types/ejs": "^3.1.5",
|
||||
"@types/node": "^24.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
||||
"@typescript-eslint/parser": "^8.67.0",
|
||||
"@types/node": "^24.19.2",
|
||||
"@typescript-eslint/eslint-plugin": "^8.72.2",
|
||||
"@typescript-eslint/parser": "^8.72.2",
|
||||
"@typescript/native": "npm:typescript@^7.0.2",
|
||||
"eslint": "^9.39.5",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-import-resolver-typescript": "^4.4.5",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-n": "^18.3.0",
|
||||
"eslint-plugin-n": "^18.5.0",
|
||||
"eslint-plugin-promise": "^7.3.0",
|
||||
"eslint-plugin-unused-imports": "^4.4.1",
|
||||
"husky": "^9.1.7",
|
||||
"jest": "^30.4.2",
|
||||
"prettier": "^3.9.6",
|
||||
"ts-jest": "^29.4.12",
|
||||
"tsup": "^8.5.1",
|
||||
"@typescript/native": "npm:typescript@^7.0.2",
|
||||
"jest": "^30.5.2",
|
||||
"prettier": "^3.10.1",
|
||||
"ts-jest": "^29.4.15",
|
||||
"tsup": "^9.0.0",
|
||||
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@discordjs/opus": "^0.10.0",
|
||||
"@discordjs/opus": "^0.10.0 || ^0.11.0",
|
||||
"@discordjs/voice": "^0.19.2",
|
||||
"ffmpeg-static": "^5.3.0",
|
||||
"opusscript": "^0.0.8"
|
||||
@@ -109,7 +109,9 @@
|
||||
"@discordjs/node-pre-gyp": {
|
||||
"tar": "^7.5.22"
|
||||
},
|
||||
"esbuild": "^0.28.2"
|
||||
"esbuild": "^0.28.2",
|
||||
"glob@>=9 <14.0.2": "^14.0.6",
|
||||
"minimatch@>=7 <11.0.1": "^11.0.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.12.0 <25"
|
||||
|
||||
Reference in new issue
Block a user