ci: fix publishing dev versions

This commit is contained in:
iCrawl 2022-01-08 23:30:28 +01:00
parent 7832dbc07a
commit e07c374337
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2
3 changed files with 18 additions and 4 deletions

View file

@ -16,7 +16,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run label sync
- name: Label sync
uses: crazy-max/ghaction-github-labeler@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

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

View file

@ -27,11 +27,11 @@ jobs:
- name: Install dependencies
run: yarn --immutable
- name: Run eslint
- name: ESLint
run: yarn lint --cache-dir=".turbo"
- name: Run tests
- name: Tests
run: yarn test --cache-dir=".turbo"
- name: Run build
- name: Build
run: yarn build --cache-dir=".turbo"