mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 18:54:45 +12:00
ci: setup npm auto deprecate workflow (#6520)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
parent
7d4a40a26d
commit
49e3a14d30
3 changed files with 1084 additions and 0 deletions
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/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",
|
||||
|
|
Loading…
Reference in a new issue