mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
ci: update to node 16 (#6315)
This commit is contained in:
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@@ -17,11 +17,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Build and deploy documentation
|
- name: Build and deploy documentation
|
||||||
uses: discordjs/action-docs@v1
|
uses: discordjs/action-docs@v1
|
||||||
|
|||||||
5
.github/workflows/publish-dev.yml
vendored
5
.github/workflows/publish-dev.yml
vendored
@@ -14,12 +14,11 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci --ignore-scripts
|
||||||
run: npm ci --ignore-scripts --no-optional
|
|
||||||
|
|
||||||
- name: Deprecate old versions
|
- name: Deprecate old versions
|
||||||
run: npm deprecate discord.js@"~13.0.0-dev" "no longer supported" || true
|
run: npm deprecate discord.js@"~13.0.0-dev" "no longer supported" || true
|
||||||
|
|||||||
20
.github/workflows/test-cron.yml
vendored
20
.github/workflows/test-cron.yml
vendored
@@ -13,11 +13,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
@@ -32,11 +31,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Run TSLint
|
- name: Run TSLint
|
||||||
run: npm run lint:typings
|
run: npm run lint:typings
|
||||||
@@ -51,11 +49,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Register Problem Matcher
|
- name: Register Problem Matcher
|
||||||
run: echo "##[add-matcher].github/tsc.json"
|
run: echo "##[add-matcher].github/tsc.json"
|
||||||
@@ -73,11 +70,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Test documentation
|
- name: Test documentation
|
||||||
run: npm run docs:test
|
run: npm run docs:test
|
||||||
|
|||||||
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@@ -11,11 +11,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
@@ -30,11 +29,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Run TSLint
|
- name: Run TSLint
|
||||||
run: npm run lint:typings
|
run: npm run lint:typings
|
||||||
@@ -49,11 +47,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Register Problem Matcher
|
- name: Register Problem Matcher
|
||||||
run: echo "##[add-matcher].github/tsc.json"
|
run: echo "##[add-matcher].github/tsc.json"
|
||||||
@@ -71,11 +68,10 @@ jobs:
|
|||||||
- name: Install Node v14
|
- name: Install Node v14
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Remove --no-optional after Node 16 upgrade
|
run: npm ci
|
||||||
run: npm ci --no-optional
|
|
||||||
|
|
||||||
- name: Test documentation
|
- name: Test documentation
|
||||||
run: npm run docs:test
|
run: npm run docs:test
|
||||||
|
|||||||
Reference in New Issue
Block a user