Skip to content

Register to Discord

Register to Discord #2

Workflow file for this run

name: "Register to Discord"
on:
push:
branches:
- 'main'
paths:
- 'src/commands.js'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run registration
run: |
export DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}
export DISCORD_APPLICATION_ID=${{ secrets.DISCORD_APPLICATION_ID }}
pnpm run register