From a30c3d0970deb916ecf3d5aa8cee7781b17977c7 Mon Sep 17 00:00:00 2001 From: SN0WF14K3 <46562212+Snowflake107@users.noreply.github.com> Date: Mon, 5 Jul 2021 12:32:47 +0545 Subject: [PATCH] ci: deprecate older release --- .github/workflows/publish-dev.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml index 1145c01..892b500 100644 --- a/.github/workflows/publish-dev.yml +++ b/.github/workflows/publish-dev.yml @@ -22,10 +22,15 @@ jobs: - name: Install dependencies run: npm install + - name: Deprecate old releases + run: npm deprecate discord-player@"~5.0.0-dev" "outdated version" || true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + - name: Publish run: | npx tsc --skipLibCheck - npm version --git-tag-version=false $(jq --raw-output '.version' package.json).$(git rev-parse --verify HEAD) + npm version --git-tag-version=false $(jq --raw-output '.version' package.json).$(git rev-parse --short HEAD).$(date +%s) npm publish --tag dev || true env: NODE_AUTH_TOKEN: ${{ secrets.npm_token }}