mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 18:34:42 +12:00
ci: deprecate old dev releases on publish (#5992)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
parent
521d26c57f
commit
d078dce2f8
1 changed files with 5 additions and 0 deletions
5
.github/workflows/publish-dev.yml
vendored
5
.github/workflows/publish-dev.yml
vendored
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue