ci: setup npm auto deprecate workflow (#6520)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Jeroen Claassens 2021-08-25 19:22:24 +02:00 committed by GitHub
parent 7d4a40a26d
commit 49e3a14d30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1084 additions and 0 deletions

25
.github/workflows/auto-deprecate.yml vendored Normal file
View 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

File diff suppressed because it is too large Load diff

View file

@ -61,6 +61,7 @@
"@commitlint/cli": "^13.1.0",
"@commitlint/config-angular": "^13.1.0",
"@discordjs/docgen": "^0.10.0",
"@favware/npm-deprecate": "^1.0.2",
"@types/node": "^16.4.12",
"conventional-changelog-cli": "^2.1.1",
"cross-env": "^7.0.3",