Platform airdropper #1205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Danger Bot | |
on: | |
pull_request: | |
types: | |
# Defaults https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request | |
- 'opened' | |
- 'synchronize' | |
- 'reopened' | |
# Custom - whenever labels are changed | |
- 'labeled' | |
- 'unlabeled' | |
jobs: | |
danger: | |
runs-on: ubuntu-latest | |
name: Danger JS | |
# TODO: remove this line when ready to start publishing | |
if: ${{ false }} | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PNPM | |
uses: pnpm/[email protected] | |
with: | |
version: latest | |
- name: Setup Node v18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Run Danger JS | |
env: | |
# See https://github.com/danger/danger-js/issues/1042 | |
DANGER_GITHUB_API_BASE_URL: 'https://api.github.com' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: pnpm dlx danger ci |