ci: fix publishing dev versions

This commit is contained in:
iCrawl
2022-01-08 23:30:28 +01:00
parent 7832dbc07a
commit e07c374337
3 changed files with 18 additions and 4 deletions

View File

@@ -16,6 +16,17 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Turbo cache
id: turbo-cache
uses: actions/cache@v2
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: Check previous released version
id: pre-release
@@ -28,6 +39,9 @@ jobs:
if: steps.pre-release.outputs.release == 'true'
run: yarn --immutable
- name: Build dependencies
run: yarn build --cache-dir=".turbo"
- name: Deprecate old versions
if: steps.pre-release.outputs.release == 'true'
run: npm deprecate discord.js@"~$(jq --raw-output '.version' packages/discord.js/package.json)" "no longer supported" || true