Skip to content

Commit

Permalink
ci: setup npm auto deprecate workflow (#6520)
Browse files Browse the repository at this point in the history
Co-authored-by: Noel <buechler.noel@outlook.com>
  • Loading branch information
favna and iCrawl committed Aug 25, 2021
1 parent 7d4a40a commit 49e3a14
Show file tree
Hide file tree
Showing 3 changed files with 1,085 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/auto-deprecate.yml
@@ -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 }}

0 comments on commit 49e3a14

Please sign in to comment.