mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
ci: setup npm auto deprecate workflow (#6520)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
25
.github/workflows/auto-deprecate.yml
vendored
Normal file
25
.github/workflows/auto-deprecate.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: NPM auto deprecate
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 1 * * *'
|
||||||
|
jobs:
|
||||||
|
auto-deprecate:
|
||||||
|
name: NPM auto deprecate
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Node v16
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci --ignore-scripts
|
||||||
|
|
||||||
|
- name: Deprecate versions
|
||||||
|
run: 'npm exec --no npm-deprecate -- --name "*dev*" --package "discord.js"'
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||||
1058
package-lock.json
generated
1058
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -61,6 +61,7 @@
|
|||||||
"@commitlint/cli": "^13.1.0",
|
"@commitlint/cli": "^13.1.0",
|
||||||
"@commitlint/config-angular": "^13.1.0",
|
"@commitlint/config-angular": "^13.1.0",
|
||||||
"@discordjs/docgen": "^0.10.0",
|
"@discordjs/docgen": "^0.10.0",
|
||||||
|
"@favware/npm-deprecate": "^1.0.2",
|
||||||
"@types/node": "^16.4.12",
|
"@types/node": "^16.4.12",
|
||||||
"conventional-changelog-cli": "^2.1.1",
|
"conventional-changelog-cli": "^2.1.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user