mirror of
https://github.com/discordjs/discord.js.git
synced 2024-07-16 00:47:37 +12:00
chore: update engine field in packages & deploy website manually
This commit is contained in:
parent
5c0fad3b2d
commit
ee2afb0aae
57
.github/workflows/documentation.yml
vendored
57
.github/workflows/documentation.yml
vendored
|
@ -6,7 +6,6 @@ on:
|
|||
paths:
|
||||
- 'packages/*/src/**'
|
||||
- '!packages/actions/**'
|
||||
- '!packages/api-extractor-utils/**'
|
||||
- '!packages/create-discord-bot/**'
|
||||
- '!packages/docgen/**'
|
||||
- '!packages/proxy-container/**'
|
||||
|
@ -30,7 +29,7 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build:
|
||||
build-docs:
|
||||
name: Build & upload documentation
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
|
@ -121,3 +120,57 @@ jobs:
|
|||
git add .
|
||||
git commit -m "Docs build for ${GITHUB_REF_TYPE} ${GITHUB_REF_NAME}: ${GITHUB_SHA}" || true
|
||||
git push
|
||||
|
||||
build-indicies:
|
||||
needs: build-docs
|
||||
name: Build & upload search indicies
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
if: github.repository_owner == 'discordjs'
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install node.js v18
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install dependencies
|
||||
uses: ./packages/actions/src/pnpmCache
|
||||
|
||||
- name: Build dependencies
|
||||
run: pnpm run build
|
||||
|
||||
- name: Upload search indicies to meilisearch
|
||||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
SEARCH_API_URL: ${{ secrets.SEARCH_API_URL }}
|
||||
SEARCH_API_KEY: ${{ secrets.SEARCH_API_KEY }}
|
||||
uses: ./packages/actions/src/uploadSearchIndicies
|
||||
|
||||
deploy-website:
|
||||
needs: [build-docs, build-indicies]
|
||||
name: Deploy website
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'discordjs'
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build & deploy website
|
||||
uses: BetaHuhn/deploy-to-vercel-action@643bc80032ba62ca41d1a9aaba7b38b51c2b8646
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
ALIAS_DOMAINS: |
|
||||
discord.js.org
|
||||
discordjs.dev
|
||||
VERCEL_SCOPE: 'discordjs'
|
||||
|
|
4
.github/workflows/lock.yml
vendored
4
.github/workflows/lock.yml
vendored
|
@ -3,13 +3,13 @@ on:
|
|||
schedule:
|
||||
- cron: '0 16 * * *'
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
issues: write
|
||||
concurrency:
|
||||
group: lock
|
||||
jobs:
|
||||
action:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v4
|
||||
with:
|
||||
|
|
49
.github/workflows/search-indicies.yml
vendored
49
.github/workflows/search-indicies.yml
vendored
|
@ -1,49 +0,0 @@
|
|||
name: Search indicies
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
paths:
|
||||
- 'packages/*/src/**'
|
||||
- '!packages/actions/**'
|
||||
- '!packages/api-extractor-utils/**'
|
||||
- '!packages/create-discord-bot/**'
|
||||
- '!packages/docgen/**'
|
||||
- '!packages/proxy-container/**'
|
||||
- '!packages/scripts/**'
|
||||
- '!packages/ui/**'
|
||||
tags:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build:
|
||||
name: Build & upload search indicies
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
if: github.repository_owner == 'discordjs'
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install node.js v18
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install dependencies
|
||||
uses: ./packages/actions/src/pnpmCache
|
||||
|
||||
- name: Build dependencies
|
||||
run: pnpm run build
|
||||
|
||||
- name: Upload search indicies to meilisearch
|
||||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
SEARCH_API_URL: ${{ secrets.SEARCH_API_URL }}
|
||||
SEARCH_API_KEY: ${{ secrets.SEARCH_API_KEY }}
|
||||
uses: ./packages/actions/src/uploadSearchIndicies
|
|
@ -96,6 +96,6 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.1"
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
|
|
1
apps/website/.gitignore
vendored
1
apps/website/.gitignore
vendored
|
@ -27,3 +27,4 @@ src/styles/unocss.css
|
|||
.vscode
|
||||
lighthouse-results
|
||||
|
||||
.vercel
|
||||
|
|
|
@ -101,6 +101,6 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.1"
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
|
|
8
apps/website/vercel.json
Normal file
8
apps/website/vercel.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"git": {
|
||||
"deploymentEnabled": {
|
||||
"main": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -71,6 +71,11 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"pnpm": {
|
||||
"peerDependencyRules": {
|
||||
"ignoreMissing": [
|
||||
"*"
|
||||
]
|
||||
},
|
||||
"overrides": {
|
||||
"@contentlayer/utils>@opentelemetry/core": "^1.15.1",
|
||||
"@contentlayer/utils>@opentelemetry/exporter-trace-otlp-grpc": "^0.41.1",
|
||||
|
@ -84,7 +89,7 @@
|
|||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.1"
|
||||
"node": ">=18"
|
||||
},
|
||||
"packageManager": "pnpm@8.7.0"
|
||||
"packageManager": "pnpm@8.10.2"
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"undici": "5.27.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.53.0",
|
||||
|
@ -62,6 +62,6 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,5 +12,5 @@ outputs:
|
|||
semver:
|
||||
description: 'The semver string that was extracted from this tag'
|
||||
runs:
|
||||
using: node16
|
||||
using: node20
|
||||
main: ../../dist/formatTag/index.js
|
||||
|
|
|
@ -6,5 +6,5 @@ inputs:
|
|||
version:
|
||||
description: 'The semver string'
|
||||
runs:
|
||||
using: node16
|
||||
using: node20
|
||||
main: ../../dist/uploadDocumentation/index.js
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: 'Upload search indicies'
|
||||
description: 'Uploads the search indicies to a meilisearch database'
|
||||
runs:
|
||||
using: node16
|
||||
using: node20
|
||||
main: ../../dist/uploadSearchIndicies/index.js
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"@microsoft/tsdoc": "0.14.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.53.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
|
@ -60,7 +60,7 @@
|
|||
"typescript": "^5.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
## Installation
|
||||
|
||||
**Node.js 16.11.0 or newer is required.**
|
||||
**Node.js 18 or newer is required.**
|
||||
|
||||
```sh
|
||||
npm install @discordjs/brokers
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
"devDependencies": {
|
||||
"@favware/cliff-jumper": "^2.2.1",
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.53.0",
|
||||
|
@ -86,7 +86,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
## Installation
|
||||
|
||||
**Node.js 16.11.0 or newer is required.**
|
||||
**Node.js 18 or newer is required.**
|
||||
|
||||
```sh
|
||||
npm install @discordjs/collection
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
"devDependencies": {
|
||||
"@favware/cliff-jumper": "^2.2.1",
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
|
@ -76,7 +76,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
## Installation
|
||||
|
||||
**Node.js 16.11.0 or newer is required.**
|
||||
**Node.js 18 or newer is required.**
|
||||
|
||||
```sh
|
||||
npm install @discordjs/core
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"devDependencies": {
|
||||
"@favware/cliff-jumper": "^2.2.1",
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"@types/prompts": "^2.4.7",
|
||||
"@types/validate-npm-package-name": "^4.0.1",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
|
@ -72,7 +72,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.1"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
"devDependencies": {
|
||||
"@favware/cliff-jumper": "^2.2.1",
|
||||
"@types/jsdoc-to-markdown": "^7.0.5",
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.53.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
|
@ -78,7 +78,7 @@
|
|||
"typescript": "^5.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
## Installation
|
||||
|
||||
**Node.js 18.13.0 or newer is required.**
|
||||
**Node.js 18 or newer is required.**
|
||||
|
||||
```sh
|
||||
npm install @discordjs/next
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.1"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
"typescript": "^5.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
## Installation
|
||||
|
||||
**Node.js 16.11.0 or newer is required.**
|
||||
**Node.js 18 or newer is required.**
|
||||
|
||||
```sh
|
||||
npm install @discordjs/proxy
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@turbo/gen": "^1.10.16",
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.53.0",
|
||||
|
@ -76,6 +76,6 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"extends": "../../api-extractor.json",
|
||||
"docModel": { "projectFolderUrl": "https://github.com/discordjs/discord.js/tree/main/packages/{{name}}" }
|
||||
"docModel": {
|
||||
"projectFolderUrl": "https://github.com/discordjs/discord.js/tree/main/packages/{{name}}"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
"devDependencies": {
|
||||
"@favware/cliff-jumper": "^2.2.1",
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.53.0",
|
||||
|
@ -66,7 +66,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.1"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
"@storybook/react": "^7.5.3",
|
||||
"@storybook/react-vite": "^7.5.3",
|
||||
"@storybook/testing-library": "^0.2.2",
|
||||
"@types/node": "16.18.60",
|
||||
"@types/node": "18.18.8",
|
||||
"@types/react": "^18.2.36",
|
||||
"@types/react-dom": "^18.2.14",
|
||||
"@unocss/eslint-plugin": "^0.57.2",
|
||||
|
@ -90,7 +90,7 @@
|
|||
"vitest": "^0.34.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
"node": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
File diff suppressed because one or more lines are too long
1107
pnpm-lock.yaml
1107
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue