From d078dce2f8ffed2adef5a122a116d908518121c2 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Thu, 1 Jul 2021 17:37:32 +0100 Subject: [PATCH] ci: deprecate old dev releases on publish (#5992) Co-authored-by: Noel --- .github/workflows/publish-dev.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml index 7c2f60ef0..eacbee34c 100644 --- a/.github/workflows/publish-dev.yml +++ b/.github/workflows/publish-dev.yml @@ -21,6 +21,11 @@ jobs: # Remove --no-optional after Node 16 upgrade run: npm ci --ignore-scripts --no-optional + - name: Deprecate old versions + run: npm deprecate discord.js@"~13.0.0-dev" "no longer supported" || true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + - name: Publish run: | npm version --git-tag-version=false $(jq --raw-output '.version' package.json).$(git rev-parse --short HEAD).$(date +%s)