mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 19:44:43 +12:00
ci: fix publishing dev versions
This commit is contained in:
parent
7832dbc07a
commit
e07c374337
3 changed files with 18 additions and 4 deletions
2
.github/workflows/labelsync.yml
vendored
2
.github/workflows/labelsync.yml
vendored
|
@ -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 }}
|
||||
|
|
14
.github/workflows/publish-dev.yml
vendored
14
.github/workflows/publish-dev.yml
vendored
|
@ -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
|
||||
|
|
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue