mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
ci: better naming for ci
This commit is contained in:
5
.github/workflows/labelsync.yml
vendored
5
.github/workflows/labelsync.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Label Sync
|
name: Label sync
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
@@ -9,9 +9,10 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '.github/labels.yml'
|
- '.github/labels.yml'
|
||||||
jobs:
|
jobs:
|
||||||
labelsync:
|
label-sync:
|
||||||
name: Label sync
|
name: Label sync
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
5
.github/workflows/pr-automation.yml
vendored
5
.github/workflows/pr-automation.yml
vendored
@@ -1,8 +1,9 @@
|
|||||||
name: 'PR Automation'
|
name: 'PR Triage'
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
jobs:
|
jobs:
|
||||||
triage:
|
pr-triage:
|
||||||
|
name: PR Triage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Automatically label PR
|
- name: Automatically label PR
|
||||||
|
|||||||
7
.github/workflows/publish-dev-docker.yml
vendored
7
.github/workflows/publish-dev-docker.yml
vendored
@@ -1,14 +1,13 @@
|
|||||||
name: Publish dev Docker Images
|
name: Publish dev docker images
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 */12 * * *'
|
- cron: '0 */12 * * *'
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker-publish:
|
||||||
name: Docker
|
name: Docker publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
6
.github/workflows/publish-dev.yml
vendored
6
.github/workflows/publish-dev.yml
vendored
@@ -4,8 +4,8 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 */12 * * *'
|
- cron: '0 */12 * * *'
|
||||||
jobs:
|
jobs:
|
||||||
npm:
|
npm-publish:
|
||||||
name: npm
|
name: npm publish
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- name: Build dependencies
|
- name: Build dependencies
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish package
|
||||||
run: |
|
run: |
|
||||||
yarn workspace ${{ matrix.package }} release --preid "dev.$(date +%s)-$(git rev-parse --short HEAD)"
|
yarn workspace ${{ matrix.package }} release --preid "dev.$(date +%s)-$(git rev-parse --short HEAD)"
|
||||||
yarn workspace ${{ matrix.package }} npm publish --tag dev || true
|
yarn workspace ${{ matrix.package }} npm publish --tag dev || true
|
||||||
|
|||||||
11
.github/workflows/publish-docker.yml
vendored
11
.github/workflows/publish-docker.yml
vendored
@@ -1,11 +1,10 @@
|
|||||||
name: Publish Docker Images
|
name: Publish dev docker images
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker-publish:
|
||||||
name: Docker
|
name: Docker publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -16,10 +15,10 @@ jobs:
|
|||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
|
|
||||||
- name: Build the image
|
- name: Build docker image
|
||||||
run: docker build -t discordjs/proxy:latest -f packages/proxy-container/Dockerfile .
|
run: docker build -t discordjs/proxy:latest -f packages/proxy-container/Dockerfile .
|
||||||
|
|
||||||
- name: Tag the image with major
|
- name: Tag image with major
|
||||||
run: docker tag discordjs/proxy discordjs/proxy:$(cut -d '.' -f1 <<< $(jq --raw-output '.version' packages/proxy-container/package.json))
|
run: docker tag discordjs/proxy discordjs/proxy:$(cut -d '.' -f1 <<< $(jq --raw-output '.version' packages/proxy-container/package.json))
|
||||||
|
|
||||||
- name: Push image to DockerHub
|
- name: Push image to DockerHub
|
||||||
|
|||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -1,8 +1,8 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
tests:
|
||||||
name: Lint
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
Reference in New Issue
Block a user